summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYann Droneaud <ydroneaud@opteya.com>2013-09-12 10:51:18 +0200
committerFilipe Brandenburger <filbranden@google.com>2015-03-06 13:23:27 -0800
commit936183a492373f8a54b6ecaa806e252d08b793c5 (patch)
tree72dca53980e7c8a09985411c9603ba1d6e1c3e01
parent85e82670315cc2a6ac020430ae3f7e46862ff5d9 (diff)
downloadgit-repo-936183a492373f8a54b6ecaa806e252d08b793c5.tar.gz
git_config: add support for remote '.'v1.12.19
As a fix for issue #149, this patch add support for the remote '.' (local). As an alias for the local repository, remote '.' is lacking a fetch = config in .git/config. Without such refspec, repo info --overview is not able to process a local tracking branch. v2: Check for name == '.' before checking if merge starts with refs/, since the case where it's not is invalid. Signed-off-by: Yann Droneaud <ydroneaud@opteya.com> Signed-off-by: Filipe Brandenburger <filbranden@google.com> Change-Id: I8c8fd8602cd68baecb530301ae41d37d751ec85d
-rw-r--r--git_config.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/git_config.py b/git_config.py
index e789be2e..c4c31e18 100644
--- a/git_config.py
+++ b/git_config.py
@@ -619,7 +619,7 @@ class Remote(object):
619 def ToLocal(self, rev): 619 def ToLocal(self, rev):
620 """Convert a remote revision string to something we have locally. 620 """Convert a remote revision string to something we have locally.
621 """ 621 """
622 if IsId(rev): 622 if self.name == '.' or IsId(rev):
623 return rev 623 return rev
624 624
625 if not rev.startswith('refs/'): 625 if not rev.startswith('refs/'):