[projects/git-slug: 60/170] Register refs to fetch notes in .gitconfig
glen
glen at pld-linux.org
Mon Sep 21 21:43:51 CEST 2015
commit 8720f335c8620c59318145304a0724ab551f5a37
Author: Kacper Kornet <draenog at pld-linux.org>
Date: Fri Oct 28 12:11:09 2011 +0100
Register refs to fetch notes in .gitconfig
git_slug/gitrepo.py | 2 ++
1 file changed, 2 insertions(+)
---
diff --git a/git_slug/gitrepo.py b/git_slug/gitrepo.py
index c874460..af0caf8 100644
--- a/git_slug/gitrepo.py
+++ b/git_slug/gitrepo.py
@@ -66,6 +66,8 @@ class GitRepo:
self.commandio(['remote', 'add', remotename, remotepull])
if remotepush is not None:
self.commandio(['remote', 'set-url', '--push', remotename, remotepush])
+ self.commandio(['config', '--local', '--add', 'remote.{}.fetch'.format(remotename),
+ 'refs/notes/commits:refs/notes/commits'])
def check_remote(self, ref, remote=REMOTE_NAME):
ref = ref.replace(REFFILE, os.path.join('remotes', remote))
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5
More information about the pld-cvs-commit
mailing list