summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2011-02-24 08:41:52 -0700
committerJesse Keating <jkeating@redhat.com>2011-02-24 08:46:42 -0700
commit35ac8efb537f1c105cafe7fd4b0523078f5ac51d (patch)
tree5b1151debc6d677bb8f61dc6dbcad2ad33ae633e
parent0831adc3c5867bead44a064eed002280153ccb2b (diff)
downloadfedora-packager-35ac8efb537f1c105cafe7fd4b0523078f5ac51d.tar.gz
fedora-packager-35ac8efb537f1c105cafe7fd4b0523078f5ac51d.tar.xz
fedora-packager-35ac8efb537f1c105cafe7fd4b0523078f5ac51d.zip
Fix up uses of path (ticket #96)
-rw-r--r--src/pyfedpkg/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pyfedpkg/__init__.py b/src/pyfedpkg/__init__.py
index a6a2c2a..704e979 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -440,7 +440,7 @@ def clone(module, user, path=None, branch=None, bare_dir=None):
else:
log.debug('Cloning %s' % giturl)
cmd.extend([giturl])
- _run_command(cmd)
+ _run_command(cmd, cwd=path)
# Check if we're supposed to work on a branch and if so, switch_branch
if branch:
@@ -764,7 +764,7 @@ def retire(path, message=None):
"""
- cmd = ['git', 'rm', '-rf', path]
+ cmd = ['git', 'rm', '-rf', '.']
_run_command(cmd, cwd=path)
if not message: