Improve wording

This commit is contained in:
Midgard 2019-11-06 14:11:11 +01:00
parent ae9dd17ef3
commit f5592f3796
Signed by: midgard
GPG Key ID: 511C112F1331BBB4
1 changed files with 3 additions and 3 deletions

View File

@ -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; }