projects
/
tools
/
git-buildpackage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
488f16c
)
Strip traling slashes from repo path
author
Guido Günther
<agx@sigxcpu.org>
Mon, 7 Jun 2010 15:50:35 +0000
(17:50 +0200)
committer
Guido Günther
<agx@sigxcpu.org>
Mon, 7 Jun 2010 15:50:35 +0000
(17:50 +0200)
Closes: #584775
gbp-clone
patch
|
blob
|
history
diff --git
a/gbp-clone
b/gbp-clone
index
02f22b5
..
ed835f9
100755
(executable)
--- a/
gbp-clone
+++ b/
gbp-clone
@@
-52,7
+52,7
@@
def main(argv):
parser.print_help()
return 1
else:
-
repo
= args[1]
+
source
= args[1]
if options.verbose:
Command.verbose = True
@@
-65,9
+65,9
@@
def main(argv):
pass
try:
- GitClone()([
repo
])
+ GitClone()([
source
])
- (clone, dummy) = os.path.splitext(
repo
.rsplit('/',1)[1])
+ (clone, dummy) = os.path.splitext(
source.rstrip('/')
.rsplit('/',1)[1])
os.chdir(clone)
repo = GitRepository(os.path.curdir)