mirror of
https://github.com/git/git.git
synced 2024-11-01 14:57:52 +01:00
Merge branch 'fg/submodule-fixup'
Code cleanup. * fg/submodule-fixup: git-submodule.sh: remove duplicate call to set_rev_name
This commit is contained in:
commit
515cded0fb
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue