Bug 627748

Summary: fedpkg crash when cloning with --branches option
Product: [Fedora] Fedora Reporter: Matthew Truch <matt>
Component: fedora-packagerAssignee: Dennis Gilmore <dennis>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 13CC: dcantrell, dennis
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2010-08-27 00:28:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Matthew Truch 2010-08-26 20:07:41 UTC
Description of problem:
Crash when using "fedpkg clone --branches $MODULE"

Version-Release number of selected component (if applicable):
fedpkg-0.5.1.3-1.fc13.noarch

How reproducible:
Always

Steps to Reproduce:
1. fedpkg clone --branches cfitsio
  
Actual results:
Crash

Expected results:
A clone of all branches of cfitsio in their own subdirectories.  I also tried this with other modules I own.  Using fedpkg clone without the --branches option works as expected.  

Additional info:

Traceback stuff from ABRT (which wouldn't let me submit this bug claiming that it was a dupe of 622716).

repo.py:116:__init__:InvalidGitRepositoryError: /home/matt/fedora/cfitsio

Traceback (most recent call last):
  File "/usr/bin/fedpkg", line 1086, in <module>
    args.command(args)
  File "/usr/bin/fedpkg", line 425, in clone
    pyfedpkg.clone_with_dirs(args.module[0], args.user)
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 413, in clone_with_dirs
    clone(module, user, top_path, bare_dir=repo_path)
  File "/usr/lib/python2.6/site-packages/pyfedpkg/__init__.py", line 385, in clone
    repo = git.Repo(module)
  File "/usr/lib/python2.6/site-packages/git/repo.py", line 116, in __init__
    raise InvalidGitRepositoryError(epath)
InvalidGitRepositoryError: /home/matt/fedora/cfitsio

Local variables in innermost frame:
dummy: ''
self: <git.Repo "None">
curpath: '/'
epath: '/home/matt/fedora/cfitsio'
path: 'cfitsio'
gitpath: '/.git'

Comment 1 Jesse Keating 2010-08-27 00:28:32 UTC

*** This bug has been marked as a duplicate of bug 627174 ***