Skip to content

Commit

Permalink
Always push current branch to remote
Browse files Browse the repository at this point in the history
  • Loading branch information
reidsunderland committed Aug 3, 2023
1 parent cb9eca8 commit 43b93b1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion bin/sr3_commit
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ else
git commit
fi

if ! git push origin; then
# Always push the current branch to the remote
if ! git push --set-upstream origin "$(git rev-parse --abbrev-ref HEAD)"; then
echo "[ERROR] Problems were encountered during repository push."
exit 6
fi
Expand Down

0 comments on commit 43b93b1

Please sign in to comment.