Improve wording
This commit is contained in:
parent
ae9dd17ef3
commit
f5592f3796
1 changed files with 3 additions and 3 deletions
|
@ -79,15 +79,15 @@ for branchspec in "${branches[@]}"; do
|
|||
follower_ref="refs/remotes/$remote/$branch"
|
||||
|
||||
if ! ref_exists "$follower_ref"; then
|
||||
echo "Branch doesn't exist yet at remote, creating"
|
||||
echo "Branch doesn't yet exist at remote, creating"
|
||||
git reset --hard "$leader_sha" --
|
||||
git push "$remote" "+HEAD:$branch" || { error "$remote $branch: failed to push"; continue; }
|
||||
|
||||
elif is_ref_at_sha "$follower_ref" "$leader_sha"; then
|
||||
echo "Branch up to date"
|
||||
echo "Already up to date"
|
||||
|
||||
else
|
||||
echo "Branch existed at remote, updating"
|
||||
echo "Branch exists at remote, updating"
|
||||
git reset --hard "$follower_ref" --
|
||||
git merge --ff-only "$leader_sha" || { error "$remote $branch: FF not possible"; continue; }
|
||||
git push "$remote" "+HEAD:$branch" || { error "$remote $branch: failed to push"; continue; }
|
||||
|
|
Loading…
Reference in a new issue