[projects/git-slug: 62/170] Fetch all notes by default

glen glen at pld-linux.org
Mon Sep 21 21:44:01 CEST 2015


commit 5e25e92d6a5baea8042fb6b5a98e07b462b3d471
Author: Kacper Kornet <draenog at pld-linux.org>
Date:   Fri Oct 28 15:26:59 2011 +0100

    Fetch all notes by default
    
    1. We can start to use some other notes.
    2. If refs/notes/commits is specified explicitly in .gitconfig and it
       it does not exists upstream then the fetch fails

 git_slug/gitrepo.py | 2 +-
 slug.py             | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/git_slug/gitrepo.py b/git_slug/gitrepo.py
index af0caf8..81e7a66 100644
--- a/git_slug/gitrepo.py
+++ b/git_slug/gitrepo.py
@@ -67,7 +67,7 @@ class GitRepo:
         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'])
+            'refs/notes/*:refs/notes/*'])
 
     def check_remote(self, ref, remote=REMOTE_NAME):
         ref = ref.replace(REFFILE, os.path.join('remotes', remote))
diff --git a/slug.py b/slug.py
index 478f317..ba9ffba 100755
--- a/slug.py
+++ b/slug.py
@@ -119,7 +119,7 @@ def fetch_packages(options):
             if gitrepo.check_remote(ref) != refs.heads[dir][ref]:
                 ref2fetch.append('+{}:{}/{}'.format(ref, REMOTEREFS, ref[len('refs/heads/'):]))
         if ref2fetch:
-            ref2fetch.append('refs/notes/commits:refs/notes/commits')
+            ref2fetch.append('refs/notes/*:refs/notes/*')
             fetch_queue.put((gitrepo, ref2fetch))
             updated_repos.append(gitrepo)
 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/projects/git-slug.git/commitdiff/4ed64f73960519a2f4fd04c42950b2c96ae795c5



More information about the pld-cvs-commit mailing list