mirror of
https://github.com/zulip/zulip.git
synced 2025-10-24 00:23:49 +00:00
12 lines
261 B
Bash
Executable File
12 lines
261 B
Bash
Executable File
#!/usr/bin/env bash
|
|
set -eu
|
|
|
|
upstream_url="https://github.com/zulip/zulip.git"
|
|
if ! git remote | grep -qx upstream; then
|
|
git remote add upstream "$upstream_url"
|
|
else
|
|
git remote set-url upstream "$upstream_url"
|
|
fi
|
|
|
|
git fetch --prune --quiet --tags --all
|