Skip to content

Commit

Permalink
fix: push commit to upstream branch
Browse files Browse the repository at this point in the history
The upstream branch was not returned correctly, so the Dotig push
command always printed "Nothing to push".
  • Loading branch information
ArmandPhilippot committed Jul 11, 2021
1 parent 403ee38 commit f3f68ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dotig
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ get_current_branch() {
get_upstream_branch() {
local _git_branch
_git_branch=$(get_current_branch)
git -C "$DOTIG_PATH" config branch."$_git_branch".remote > /dev/null 2>&1
git -C "$DOTIG_PATH" config branch."$_git_branch".remote 2> /dev/null
}

# Return a list of existing Git remotes.
Expand Down

0 comments on commit f3f68ed

Please sign in to comment.