diff options
author | Glen Choo <chooglen@google.com> | 2022-03-05 01:13:52 +0100 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2022-03-05 01:39:11 +0100 |
commit | e44196659634fdc42672888f5a91e94303052284 (patch) | |
tree | 1603e5a372470e6adb3376149eaf507c21b30302 /git-submodule.sh | |
parent | submodule--helper: reorganize code for sh to C conversion (diff) | |
download | git-e44196659634fdc42672888f5a91e94303052284.tar.xz git-e44196659634fdc42672888f5a91e94303052284.zip |
submodule--helper run-update-procedure: remove --suboid
Teach run-update-procedure to determine the oid of the submodule's HEAD
instead of doing it in git-submodule.sh.
Signed-off-by: Glen Choo <chooglen@google.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-x | git-submodule.sh | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/git-submodule.sh b/git-submodule.sh index 87772ac891..32a09302ab 100755 --- a/git-submodule.sh +++ b/git-submodule.sh @@ -406,14 +406,9 @@ cmd_update() displaypath=$(git submodule--helper relative-path "$prefix$sm_path" "$wt_prefix") - if test $just_cloned -eq 1 + if test $just_cloned -eq 0 then - subsha1= - else just_cloned= - subsha1=$(sanitize_submodule_env; cd "$sm_path" && - git rev-parse --verify HEAD) || - die "fatal: $(eval_gettext "Unable to find current revision in submodule path '\$displaypath'")" fi if test -n "$remote" @@ -441,7 +436,6 @@ cmd_update() ${update:+--update "$update"} \ ${prefix:+--recursive-prefix "$prefix"} \ ${sha1:+--oid "$sha1"} \ - ${subsha1:+--suboid "$subsha1"} \ "--" \ "$sm_path") |