[PATCH 10/15] git-note: (Transfer) Teach git-clone how to clone notes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This patch causes git notes to be cloned in the same way that tags are
cloned.

Signed-off-by: Johan Herland <johan@xxxxxxxxxxx>
---
 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


-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux