Skip to content

Commit

Permalink
Merge branch 'fg/submodule-fixup'
Browse files Browse the repository at this point in the history
Code cleanup.

* fg/submodule-fixup:
  git-submodule.sh: remove duplicate call to set_rev_name
  • Loading branch information
Junio C Hamano committed Jun 24, 2013
2 parents 9f19e0c + b545cd1 commit 515cded
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions git-submodule.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1129,16 +1129,16 @@ cmd_status()
say "-$sha1 $displaypath"
continue;
fi
set_name_rev "$sm_path" "$sha1"
if git diff-files --ignore-submodules=dirty --quiet -- "$sm_path"
then
set_name_rev "$sm_path" "$sha1"
say " $sha1 $displaypath$revname"
else
if test -z "$cached"
then
sha1=$(clear_local_git_env; cd "$sm_path" && git rev-parse --verify HEAD)
set_name_rev "$sm_path" "$sha1"
fi
set_name_rev "$sm_path" "$sha1"
say "+$sha1 $displaypath$revname"
fi

Expand Down

0 comments on commit 515cded

Please sign in to comment.