summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Keating <jkeating@redhat.com>2010-07-13 11:36:28 -0700
committerJesse Keating <jkeating@redhat.com>2010-07-13 11:36:44 -0700
commit55a04fd2883fadb427525fda32e4e89481cf6314 (patch)
tree6083f715bcfb87dd91c338b936e1a4332eaafd75
parent6ec2c2352bd9e1b220d5551b63cbf95e0fee5f36 (diff)
downloadfedora-packager-55a04fd2883fadb427525fda32e4e89481cf6314.tar.gz
fedora-packager-55a04fd2883fadb427525fda32e4e89481cf6314.tar.xz
fedora-packager-55a04fd2883fadb427525fda32e4e89481cf6314.zip
Fix cloning with --branches
-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 709e922..c5a30c3 100644
--- a/src/pyfedpkg/__init__.py
+++ b/src/pyfedpkg/__init__.py
@@ -299,6 +299,7 @@ def clone_with_dirs(module, user, path=os.getcwd()):
# Get the full path of, and git object for, our directory of branches
top_path = os.path.join(path, module)
top_git = git.Git(top_path)
+ repo_path = os.path.join(top_path, 'fedpkg.git')
# Create our new top directory
try:
@@ -308,9 +309,8 @@ def clone_with_dirs(module, user, path=os.getcwd()):
(module, e))
# Create a bare clone first. This gives us a good list of branches
- clone(module, user, top_path, bare_dir="fedpkg.git")
+ clone(module, user, top_path, bare_dir=repo_path)
# Get the full path to, and a git object for, our new bare repo
- repo_path = os.path.join(top_path, "fedpkg.git")
repo_git = git.Git(repo_path)
# Get a branch listing