From f3f68edacaba028a0cdd10a6239dbaca9d4d3b46 Mon Sep 17 00:00:00 2001 From: Armand Philippot Date: Sun, 11 Jul 2021 17:38:46 +0200 Subject: [PATCH] fix: push commit to upstream branch The upstream branch was not returned correctly, so the Dotig push command always printed "Nothing to push". --- dotig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dotig b/dotig index b3e22ff..0b52843 100755 --- a/dotig +++ b/dotig @@ -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.