Skip to content

Commit ded6aa6

Browse files
Kirill Brilliantovgitster
authored andcommitted
Documentation: correct example restore from bundle
Because the bundle created in the example does not record HEAD, "git clone" will not check out the files to the working tree: $ git clone pr.bundle q/ Cloning into 'q'... Receiving objects: 100% (619/619), 13.52 MiB | 18.74 MiB/s, done. Resolving deltas: 100% (413/413), done. warning: remote HEAD refers to nonexistent ref, unable to checkout. Avoid alarming the readers by adding "-b master" to the example. A better fix may be to arrange the bundle created in the earlier step to record HEAD, so that it can be cloned without this workaround. Signed-off-by: Brilliantov Kirill Vladimirovich <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 7e20105 commit ded6aa6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Documentation/git-bundle.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ were a remote repository instead of creating an empty repository and then
118118
pulling or fetching objects from the bundle:
119119

120120
----------------
121-
machineB$ git clone /home/me/tmp/file.bundle R2
121+
machineB$ git clone -b master /home/me/tmp/file.bundle R2
122122
----------------
123123

124124
This will define a remote called "origin" in the resulting repository that

0 commit comments

Comments
 (0)