]> source.dussan.org Git - gitblit.git/commitdiff
Prune deleted branches on fetch 60/60/1
authorJames Moger <james.moger@gitblit.com>
Mon, 5 May 2014 17:37:46 +0000 (13:37 -0400)
committerJames Moger <james.moger@gitblit.com>
Mon, 5 May 2014 17:37:46 +0000 (13:37 -0400)
src/main/java/pt.py

index fcfe500676fdd5c7c6208189394aa6783f3138a7..02c4168ad65ca63b9423f9bc9bffd45efd1537e5 100644 (file)
@@ -54,9 +54,9 @@ def fetch(args):
         # fetch all current ticket patchsets
         print("Fetching ticket patchsets from the '{}' repository".format(args.remote))
         if args.quiet:
-            __call(['git', 'fetch', args.remote, '--quiet'])
+            __call(['git', 'fetch', '-p', args.remote, '--quiet'])
         else:
-            __call(['git', 'fetch', args.remote])
+            __call(['git', 'fetch', '-p', args.remote])
     else:
         # fetch specific patchset
         __resolve_patchset(args)
@@ -288,7 +288,7 @@ def propose(args):
         if fields[0] == 'remote' and fields[1].strip().startswith('--> #'):
             # set the upstream branch configuration
             args.id = int(fields[1].strip()[len('--> #'):])
-            __call(['git', 'fetch', args.remote])
+            __call(['git', 'fetch', '-p', args.remote])
             __call(['git', 'branch', '-u', '{}/ticket/{:d}'.format(args.remote, args.id)])
             break