summaryrefslogtreecommitdiffstats
path: root/src/pyfedpkg/__init__.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/pyfedpkg/__init__.py')
-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: