Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions git-summary
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ summarize_one_git_repo () {

### Check remote state
local rstate=""
local has_upstream=`gitC $f rev-parse --abbrev-ref @{u} 2> /dev/null | wc -l`
if [ $has_upstream -ne 0 ] ; then
if $(gitC $f rev-parse --verify --quiet --abbrev-ref @{u} > /dev/null); then
if [ $local_only -eq 0 ] ; then
gitC $f fetch -q &> /dev/null
fi
Expand Down