summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 87e80c4)
raw | patch | inline | side by side (parent: 87e80c4)
author | Junio C Hamano <junkio@cox.net> | |
Mon, 23 Jan 2006 01:27:52 +0000 (17:27 -0800) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Wed, 25 Jan 2006 07:17:06 +0000 (23:17 -0800) |
It is simply pointless, since no merges will ever happen in such
a repository.
Signed-off-by: Junio C Hamano <junkio@cox.net>
a repository.
Signed-off-by: Junio C Hamano <junkio@cox.net>
Documentation/git-clone.txt | patch | blob | history | |
git-clone.sh | patch | blob | history |
index 370f53e76990a5c7126f095a9c9505e44d163f7d..684e4bdf69bb7eb8ac80b41ba48298d52e4dcdef 100644 (file)
Make a 'bare' GIT repository. That is, instead of
creating `<directory>` and placing the administrative
files in `<directory>/.git`, make the `<directory>`
- itself the `$GIT_DIR`. This implies `-n` option.
+ itself the `$GIT_DIR`. This implies `-n` option. When
+ this option is used, neither the `origin` branch nor the
+ default `remotes/origin` file is created.
-o <name>::
Instead of using the branch name 'origin' to keep track
diff --git a/git-clone.sh b/git-clone.sh
index 8e65202320303d3c4fa591a9d39506b5b4374fd9..73fc919800357b35d8e2550a38517f2b58ece6c3 100755 (executable)
--- a/git-clone.sh
+++ b/git-clone.sh
cd "$D" || exit
-if test -f "$GIT_DIR/HEAD"
+if test -f "$GIT_DIR/HEAD" && test -z "$bare"
then
head_points_at=`git-symbolic-ref HEAD`
case "$head_points_at" in