/
uis
/
git
/
x
/
uis
/
git
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Sync with Git 2.15.2
[git/git.git]
/
git-submodule.sh
diff --git
a/git-submodule.sh
b/git-submodule.sh
index
156255a
..
f2e5bea
100755
(executable)
--- a/
git-submodule.sh
+++ b/
git-submodule.sh
@@
-229,6
+229,11
@@
Use -f if you really want to add it." >&2
sm_name="$sm_path"
fi
+ if ! git submodule--helper check-name "$sm_name"
+ then
+ die "$(eval_gettext "'$sm_name' is not a valid submodule name")"
+ fi
+
# perhaps the path exists and is already a git repo, else clone it
if test -e "$sm_path"
then