#30 fedpkg clone --branches fails
Closed: Fixed Opened by orion.

{{{
$ fedpkg clone --branches gridengine
Cloning into bare repository fedpkg.git...
remote: Counting objects: 278, done.
remote: Compressing objects: 100% (125/125), done.
remote: Total 278 (delta 134), reused 278 (delta 134)
Receiving objects: 100% (278/278), 67.20 KiB, done.
Resolving deltas: 100% (134/134), done.
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 903, in
args.command(args)
File "/usr/bin/fedpkg", line 406, in clone
pyfedpkg.clone_with_dirs(args.module[0], args.user)
File "/usr/lib/python2.6/site-packages/pyfedpkg/init.py", line 317, in clone_with_dirs
branches = [x for x in repo_git.branch().split() if x != "" and
File "/usr/lib/python2.6/site-packages/git/cmd.py", line 127, in
return lambda
args, kwargs: self._call_process(name, *args, kwargs)
File "/usr/lib/python2.6/site-packages/git/cmd.py", line 342, in _call_process
return self.execute(call, _kwargs)
File "/usr/lib/python2.6/site-packages/git/cmd.py", line 218, in execute
extra
File "/usr/lib/python2.6/subprocess.py", line 621, in init
errread, errwrite)
File "/usr/lib/python2.6/subprocess.py", line 1126, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory: '/export/home/orion/fedora-git/gridengine/fedpkg.git'
}}}

Leaves things in a bad state too:
{{{
$ fedpkg clone --branches kdesvn
fatal: destination path 'fedpkg.git' already exists and is not an empty directory.
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 903, in
args.command(args)
File "/usr/bin/fedpkg", line 406, in clone
pyfedpkg.clone_with_dirs(args.module[0], args.user)
File "/usr/lib/python2.6/site-packages/pyfedpkg/init.py", line 311, in clone_with_dirs
clone(module, user, top_path, bare_dir="fedpkg.git")
File "/usr/lib/python2.6/site-packages/pyfedpkg/init.py", line 287, in clone
_run_command(cmd)
File "/usr/lib/python2.6/site-packages/pyfedpkg/init.py", line 112, in _run_command
raise FedpkgError(e)
pyfedpkg.FedpkgError: Command '['git', 'clone', '--bare', 'ssh://orion@pkgs.stg.fedoraproject.org/kdesvn', 'fedpkg.git']' returned non-zero exit status 128

$ fedpkg clone --branches gridengine
Traceback (most recent call last):
File "/usr/bin/fedpkg", line 903, in
args.command(args)
File "/usr/bin/fedpkg", line 406, in clone
pyfedpkg.clone_with_dirs(args.module[0], args.user)
File "/usr/lib/python2.6/site-packages/pyfedpkg/init.py", line 308, in clone_with_dirs
(module, e))
pyfedpkg.FedpkgError: Could not create directory for module gridengine: [Errno 17] File exists: '/export/home/orion/fedora-git/gridengine'
}}}


This is fixed with [55a04fd2883fadb427525fda32e4e89481cf6314]

Metadata