summaryrefslogtreecommitdiffstats
path: root/git_config.py
diff options
context:
space:
mode:
Diffstat (limited to 'git_config.py')
-rw-r--r--git_config.py10
1 files changed, 6 insertions, 4 deletions
diff --git a/git_config.py b/git_config.py
index 76031a0e..9d5162e7 100644
--- a/git_config.py
+++ b/git_config.py
@@ -285,12 +285,14 @@ class Remote(object):
285 return True 285 return True
286 return False 286 return False
287 287
288 def ResetFetch(self): 288 def ResetFetch(self, mirror=False):
289 """Set the fetch refspec to its default value. 289 """Set the fetch refspec to its default value.
290 """ 290 """
291 self.fetch = [RefSpec(True, 291 if mirror:
292 'refs/heads/*', 292 dst = 'refs/heads/*'
293 'refs/remotes/%s/*' % self.name)] 293 else:
294 dst = 'refs/remotes/%s/*' % self.name
295 self.fetch = [RefSpec(True, 'refs/heads/*', dst)]
294 296
295 def Save(self): 297 def Save(self):
296 """Save this remote to the configuration. 298 """Save this remote to the configuration.