commit bba05ee95926ed736a3ba10a49de5a676025bedf
parent 38e414facb94022d2f91201fb5e405a2d172183f
Author: Renaud <renozao@users.noreply.github.com>
Date: Thu, 11 Jan 2018 10:56:45 +0200
parent 38e414facb94022d2f91201fb5e405a2d172183f
Author: Renaud <renozao@users.noreply.github.com>
Date: Thu, 11 Jan 2018 10:56:45 +0200
Fixed bug in fetch command: added flag -C
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/git-summary b/git-summary @@ -146,7 +146,7 @@ summarize_one_git_repo () { local has_upstream=`git -C $f rev-parse --abbrev-ref @{u} 2> /dev/null | wc -l` if [ $has_upstream -ne 0 ] ; then if [ $local_only -eq 0 ] ; then - git fetch -q &> /dev/null + git -C $f fetch -q &> /dev/null fi # Unpulled and unpushed on *current* branch local unpulled=`git -C $f log --pretty=format:'%h' ..@{u} | wc -c`
: nply/git-summary