[PATCH 10/15] git-note: (Transfer) Teach git-clone how to clone notes
- From
Johan Herland <johan@herland.net>
- Date
- May 27, 2007, 14:15 UTC
- Message-ID
- <200705271615.01210.johan@herland.net>
- In-Reply-To
- <200705271608.02122.johan@herland.net>
This patch causes git notes to be cloned in the same way that tags are cloned.
Signed-off-by: Johan Herland <johan@herland.net> --- git-clone.sh | 5 ++++- 1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/git-clone.sh b/git-clone.sh index fdd354f..6bb2fd5 100755 --- a/git-clone.sh +++ b/git-clone.sh @@ -57,7 +57,7 @@ Perhaps git-update-server-info needs to be run there?" *^*) continue;; esac case "$bare,$name" in - yes,* | ,heads/* | ,tags/*) ;; + yes,* | ,heads/* | ,tags/* | ,notes/*) ;; *) continue ;; esac if test -n "$use_separate_remote" && @@ -320,6 +320,7 @@ then branch_top="heads" fi tag_top="tags" + note_top="notes" while read sha1 name do case "$name" in @@ -331,6 +332,8 @@ then destname="refs/$branch_top/${name#refs/heads/}" ;; refs/tags/*) destname="refs/$tag_top/${name#refs/tags/}" ;; + refs/notes/*) + destname="refs/$note_top/${name#refs/notes/}" ;; *) continue ;; esac
-- 1.5.2.101.gee49f