git.99rst.org
/
git.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
| inline |
side by side
(parent:
e56660a
)
remote-bzr: add fallback check for a partial clone
author
Felipe Contreras
<redacted>
Sat, 25 May 2013 02:24:26 +0000
(21:24 -0500)
committer
Junio C Hamano
<redacted>
Tue, 28 May 2013 14:43:25 +0000
(07:43 -0700)
Signed-off-by: Felipe Contreras <redacted>
Signed-off-by: Junio C Hamano <redacted>
contrib/remote-helpers/git-remote-bzr
patch
|
blob
|
history
diff --git
a/contrib/remote-helpers/git-remote-bzr
b/contrib/remote-helpers/git-remote-bzr
index 3248586b13d8c1b43697cf85107a9f4708563a38..3cd65723c3ad04e0b339d17b36ece64d537f23f7 100755
(executable)
--- a/
contrib/remote-helpers/git-remote-bzr
+++ b/
contrib/remote-helpers/git-remote-bzr
@@
-766,7
+766,10
@@
def do_list(parser):
print
def clone(path, remote_branch):
- bdir = bzrlib.bzrdir.BzrDir.create(path)
+ try:
+ bdir = bzrlib.bzrdir.BzrDir.create(path)
+ except bzrlib.errors.AlreadyControlDirError:
+ bdir = bzrlib.bzrdir.BzrDir.open(path)
repo = bdir.find_repository()
repo.fetch(remote_branch.repository)
return remote_branch.sprout(bdir, repository=repo)
git clone https://git.99rst.org/PROJECT