aboutsummaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorJunio C Hamano <gitster@pobox.com>2012-01-31 22:24:23 -0800
committerJunio C Hamano <gitster@pobox.com>2012-01-31 22:24:23 -0800
commit5ce2b97d2c2890e4ee1dd3bc936ea20d71f830ae (patch)
tree369fb774d445e9bdbe25f8042fa2880eb3bece1a /Documentation
parent5e92376f8f70603e570f821267fc86c78175eb09 (diff)
parent9049816140e75d3f7b15264e97e042f5ab0bf392 (diff)
downloadgit-5ce2b97d2c2890e4ee1dd3bc936ea20d71f830ae.tar.gz
git-5ce2b97d2c2890e4ee1dd3bc936ea20d71f830ae.tar.xz
Merge branch 'nd/clone-detached'
* nd/clone-detached: clone: fix up delay cloning conditions push: do not let configured foreign-vcs permanently clobbered clone: print advice on checking out detached HEAD clone: allow --branch to take a tag clone: refuse to clone if --branch points to bogus ref clone: --branch=<branch> always means refs/heads/<branch> clone: delay cloning until after remote HEAD checking clone: factor out remote ref writing clone: factor out HEAD update code clone: factor out checkout code clone: write detached HEAD in bare repositories t5601: add missing && cascade
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/git-clone.txt5
1 files changed, 3 insertions, 2 deletions
diff --git a/Documentation/git-clone.txt b/Documentation/git-clone.txt
index 0931a3e39..6e22522c4 100644
--- a/Documentation/git-clone.txt
+++ b/Documentation/git-clone.txt
@@ -147,8 +147,9 @@ objects from the source repository into a pack in the cloned repository.
-b <name>::
Instead of pointing the newly created HEAD to the branch pointed
to by the cloned repository's HEAD, point to `<name>` branch
- instead. In a non-bare repository, this is the branch that will
- be checked out.
+ instead. `--branch` can also take tags and treat them like
+ detached HEAD. In a non-bare repository, this is the branch
+ that will be checked out.
--upload-pack <upload-pack>::
-u <upload-pack>::