summaryrefslogtreecommitdiffstats
path: root/git-submodule.sh
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2021-09-23 22:44:47 +0200
committerJunio C Hamano <gitster@pobox.com>2021-09-23 22:44:47 +0200
commit57e4a7b633d00f274051d436edcec14ad98969c3 (patch)
tree1773a65b46fb416f3c93f2acb232d36fba2b05cf /git-submodule.sh
parentMerge branch 'ab/http-drop-old-curl-plus' (diff)
parenttest-lib: remove unused $_x40 and $_z40 variables (diff)
downloadgit-57e4a7b633d00f274051d436edcec14ad98969c3.tar.xz
git-57e4a7b633d00f274051d436edcec14ad98969c3.zip
Merge branch 'ab/unused-script-helpers'
Code clean-up. * ab/unused-script-helpers: test-lib: remove unused $_x40 and $_z40 variables git-bisect: remove unused SHA-1 $x40 shell variable git-sh-setup: remove unused "pull with rebase" message git-submodule: remove unused is_zero_oid() function
Diffstat (limited to 'git-submodule.sh')
-rwxr-xr-xgit-submodule.sh5
1 files changed, 0 insertions, 5 deletions
diff --git a/git-submodule.sh b/git-submodule.sh
index 27efdc5774..652861aa66 100755
--- a/git-submodule.sh
+++ b/git-submodule.sh
@@ -63,11 +63,6 @@ isnumber()
n=$(($1 + 0)) 2>/dev/null && test "$n" = "$1"
}
-# Given a full hex object ID, is this the zero OID?
-is_zero_oid () {
- echo "$1" | sane_egrep '^0+$' >/dev/null 2>&1
-}
-
# Sanitize the local git environment for use within a submodule. We
# can't simply use clear_local_git_env since we want to preserve some
# of the settings from GIT_CONFIG_PARAMETERS.