summaryrefslogtreecommitdiff
path: root/git-clone.sh
diff options
context:
space:
mode:
authorLibravatar J. Bruce Fields <bfields@citi.umich.edu>2007-01-14 19:27:28 -0500
committerLibravatar J. Bruce Fields <bfields@citi.umich.edu>2007-01-14 19:27:28 -0500
commit67583917e9a2a85605c1123a62c8883593e7e889 (patch)
tree06f61d2f28e321063b8e1e206a0e418bc1ba0486 /git-clone.sh
parentuser-manual: reindent (diff)
parentMerge branch 'jc/int' (diff)
downloadtgif-67583917e9a2a85605c1123a62c8883593e7e889.tar.xz
Merge branch 'master' of git://git.kernel.org/pub/scm/git/git
Diffstat (limited to 'git-clone.sh')
-rwxr-xr-xgit-clone.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/git-clone.sh b/git-clone.sh
index 3d388de62a..0f7bbbfb39 100755
--- a/git-clone.sh
+++ b/git-clone.sh
@@ -214,7 +214,7 @@ yes)
GIT_DIR="$D" ;;
*)
GIT_DIR="$D/.git" ;;
-esac && export GIT_DIR && git-init-db ${template+"$template"} || usage
+esac && export GIT_DIR && git-init ${template+"$template"} || usage
if test -n "$reference"
then
@@ -355,7 +355,7 @@ then
# The name under $remote_top the remote HEAD seems to point at.
head_points_at=$(
(
- echo "master"
+ test -f "$GIT_DIR/$remote_top/master" && echo "master"
cd "$GIT_DIR/$remote_top" &&
find . -type f -print | sed -e 's/^\.\///'
) | (