#188 COPR webhook doesn't work with branches
Closed 6 years ago Opened 6 years ago by ignatenkobrain.

Warning: Permanently added '172.25.83.24' (ECDSA) to the list of known hosts.
Task:
{'build_id': 693686,
 'project_name': 'ksh-test',
 'project_owner': 'ignatenkobrain',
 'source_json': '{"srpm_build_method": "make_srpm", "subdirectory": "", "committish": "refs/heads/packaging", '
                '"clone_url": "https://github.com/ignatenkobrain/ast", "type": "git", "spec": ""}',
 'source_type': 8}

Running: git clone https://github.com/ignatenkobrain/ast /tmp/tmprt73b2gs/ast --depth 500 --no-single-branch

cmd: ['git', 'clone', 'https://github.com/ignatenkobrain/ast', '/tmp/tmprt73b2gs/ast', '--depth', '500', '--no-single-branch']
cwd: .
rc: 0
stdout: 
stderr: Cloning into '/tmp/tmprt73b2gs/ast'...

Running: git checkout refs/heads/packaging

cmd: ['git', 'checkout', 'refs/heads/packaging']
cwd: /tmp/tmprt73b2gs/ast
rc: 1
stdout: 
stderr: error: pathspec 'refs/heads/packaging' did not match any file(s) known to git.


Traceback (most recent call last):
  File "/usr/bin/copr-rpmbuild", line 96, in main
    action(args, config)
  File "/usr/bin/copr-rpmbuild", line 126, in build_srpm
    provider.produce_srpm()
  File "/usr/lib/python3.6/site-packages/copr_rpmbuild/providers/scm.py", line 108, in produce_srpm
    self.clone_and_checkout()
  File "/usr/lib/python3.6/site-packages/copr_rpmbuild/providers/scm.py", line 147, in clone_and_checkout
    helpers.run_cmd(checkout_cmd, cwd=self.repo_path)
  File "/usr/lib/python3.6/site-packages/copr_rpmbuild/helpers.py", line 66, in run_cmd
    raise RuntimeError(result.stderr)
RuntimeError: error: pathspec 'refs/heads/packaging' did not match any file(s) known to git.

Metadata Update from @clime:
- Issue assigned to clime

6 years ago

Metadata Update from @clime:
- Issue status updated to: Closed (was: Open)

6 years ago

Login to comment on this ticket.

Metadata