From 1e68f6e3f33e0bdc62b286aa8e4f6ff4ec8cb304 Mon Sep 17 00:00:00 2001 From: Guido Günther Date: Thu, 5 Apr 2012 14:49:58 +0200 Subject: gbp.git.repository: don't append a second .git when mirroring a repository --- gbp/git/repository.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gbp/git/repository.py b/gbp/git/repository.py index 7b84d7d0..f342d46c 100644 --- a/gbp/git/repository.py +++ b/gbp/git/repository.py @@ -1345,7 +1345,8 @@ class GitRepository(object): if not name: name = remote.rstrip('/').rsplit('/',1)[1] if (mirror or bare): - name = "%s.git" % name + if not name.endswith('.git'): + name = "%s.git" % name elif name.endswith('.git'): name = name[:-4] return klass(os.path.join(abspath, name)) -- cgit v1.2.3