projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge branch 'lt/config'
[git.git]
/
git-clone.sh
diff --git
a/git-clone.sh
b/git-clone.sh
index
c013e48
..
227245c
100755
(executable)
--- a/
git-clone.sh
+++ b/
git-clone.sh
@@
-38,12
+38,12
@@
Perhaps git-update-server-info needs to be run there?"
}
while read sha1 refname
do
}
while read sha1 refname
do
- name=`expr "
$refname" : '
refs/\(.*\)'` &&
+ name=`expr "
z$refname" : 'z
refs/\(.*\)'` &&
case "$name" in
*^*) continue;;
esac
if test -n "$use_separate_remote" &&
case "$name" in
*^*) continue;;
esac
if test -n "$use_separate_remote" &&
- branch_name=`expr "
$name" : '
heads/\(.*\)'`
+ branch_name=`expr "
z$name" : 'z
heads/\(.*\)'`
then
tname="remotes/$origin/$branch_name"
else
then
tname="remotes/$origin/$branch_name"
else
@@
-261,11
+261,7
@@
yes,yes)
;;
yes)
mkdir -p "$GIT_DIR/objects/info"
;;
yes)
mkdir -p "$GIT_DIR/objects/info"
- {
- test -f "$repo/objects/info/alternates" &&
- cat "$repo/objects/info/alternates";
- echo "$repo/objects"
- } >"$GIT_DIR/objects/info/alternates"
+ echo "$repo/objects" >> "$GIT_DIR/objects/info/alternates"
;;
esac
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"
;;
esac
git-ls-remote "$repo" >"$GIT_DIR/CLONE_HEAD"
@@
-346,7
+342,7
@@
then
# new style repository with a symref HEAD).
# Ideally we should skip the guesswork but for now
# opt for minimum change.
# new style repository with a symref HEAD).
# Ideally we should skip the guesswork but for now
# opt for minimum change.
- head_sha1=`expr "
$head_sha1" : '
ref: refs/heads/\(.*\)'`
+ head_sha1=`expr "
z$head_sha1" : 'z
ref: refs/heads/\(.*\)'`
head_sha1=`cat "$GIT_DIR/$remote_top/$head_sha1"`
;;
esac
head_sha1=`cat "$GIT_DIR/$remote_top/$head_sha1"`
;;
esac