Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
Merge branch 'fg/submodule-fixup'
author
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Jun 2013 20:48:50 +0000
(13:48 -0700)
committer
Junio C Hamano
<gitster@pobox.com>
Mon, 24 Jun 2013 20:48:50 +0000
(13:48 -0700)
Code cleanup.
* fg/submodule-fixup:
git-submodule.sh: remove duplicate call to set_rev_name
git-submodule.sh
patch
|
blob
|
history
raw
(from parent 1:
9f19e0c
)
diff --git
a/git-submodule.sh
b/git-submodule.sh
index 79bfaac9d4cb9a04e5e1fd7675d740cf9fc27e87..75feaf17492d27f0832828cee1d37ab91d9cbef6 100755
(executable)
--- a/
git-submodule.sh
+++ b/
git-submodule.sh
@@
-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