From 35ac8efb537f1c105cafe7fd4b0523078f5ac51d Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Thu, 24 Feb 2011 08:41:52 -0700 Subject: Fix up uses of path (ticket #96) --- src/pyfedpkg/__init__.py | 4 ++-- 1 file 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: -- cgit