Skip to content

Fails when GIT_TRACE is set #517

Open
@mcepl

Description

@mcepl
 $ osc service manualrun -v
Running source_service 'obs_scm' ...
Run source service: /usr/lib/obs/service/obs_scm --versionprefix 0.8.0+git --url https://github.com/git-bug/git-bug.git --scm git --changesgenerate enable --changesauthor [email protected] --outdir /home/matej/build/devel:tools:scm/git-bug/tmpoedlmd__.obs_scm.service
16:28:18.313855 git.c:476               trace: built-in: git version
16:28:18.316114 git.c:476               trace: built-in: git config remote.origin.url https://github.com/git-bug/git-bug.git
16:28:18.318527 git.c:476               trace: built-in: git fetch --filter=tree:0 --tags
16:28:18.319525 run-command.c:667       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.319532 run-command.c:759       trace: start_command: /usr/libexec/git/git remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.321606 git.c:772               trace: exec: git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.321645 run-command.c:667       trace: run_command: git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.321661 run-command.c:759       trace: start_command: /usr/libexec/git/git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.897431 run-command.c:1534      run_processes_parallel: preparing to run up to 1 tasks
16:28:18.897454 run-command.c:1562      run_processes_parallel: done
16:28:18.897465 run-command.c:667       trace: run_command: git maintenance run --auto --no-quiet --detach
16:28:18.897643 run-command.c:759       trace: start_command: /usr/libexec/git/git maintenance run --auto --no-quiet --detach
16:28:18.899677 git.c:476               trace: built-in: git maintenance run --auto --no-quiet --detach
16:28:18.902005 git.c:476               trace: built-in: git fetch --filter=tree:0
16:28:18.902855 run-command.c:667       trace: run_command: GIT_DIR=.git git remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.902862 run-command.c:759       trace: start_command: /usr/libexec/git/git remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.904271 git.c:772               trace: exec: git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.904287 run-command.c:667       trace: run_command: git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:18.904295 run-command.c:759       trace: start_command: /usr/libexec/git/git-remote-https origin https://github.com/git-bug/git-bug.git
16:28:19.290663 run-command.c:1534      run_processes_parallel: preparing to run up to 1 tasks
16:28:19.290686 run-command.c:1562      run_processes_parallel: done
16:28:19.290697 run-command.c:667       trace: run_command: git maintenance run --auto --no-quiet --detach
16:28:19.290873 run-command.c:759       trace: start_command: /usr/libexec/git/git maintenance run --auto --no-quiet --detach
16:28:19.293211 git.c:476               trace: built-in: git maintenance run --auto --no-quiet --detach
16:28:19.300953 git.c:476               trace: built-in: git merge origin/master
Already up to date.
16:28:19.304276 git.c:476               trace: built-in: git rev-parse --verify --quiet master
0ab94c9b7ac53ca9ab56febcf5cc3f26959e8b8a
Command ['git', 'log', '--no-merges', '--pretty=format:%s', "d499b6e9d3333334614924669b74640a2d0b5485..16:28:19.377017 git.c:476               trace: built-in: git log -n1 '--pretty=format:%H'\n0ab94c9b7ac53ca9ab56febcf5cc3f26959e8b8a"] failed(128): '16:28:19.379541 git.c:476               trace: built-in: git log --no-merges '--pretty=format:%s' 'd499b6e9d3333334614924669b74640a2d0b5485..16:28:19.377017 git.c:476               trace: built-in: git log -n1 '\''--pretty=format:%H'\''
0ab94c9b7ac53ca9ab56febcf5cc3f26959e8b8a'
fatal: invalid object name 'd499b6e9d3333334614924669b74640a2d0b5485..16'.
'
Exception ignored in atexit callback <bound method Tasks.cleanup of <TarSCM.tasks.Tasks object at 0x7fb61af98050>>:
Traceback (most recent call last):
  File "/usr/lib/obs/service/TarSCM/tasks.py", line 60, in cleanup
    self.scm_object.cleanup()
  File "/usr/lib/obs/service/TarSCM/scm/git.py", line 478, in cleanup
    self.helpers.safe_run(
  File "/usr/lib/obs/service/TarSCM/helpers.py", line 72, in safe_run
    result = self.run_cmd(cmd, cwd, interactive, raisesysexit=True)
  File "/usr/lib/obs/service/TarSCM/helpers.py", line 59, in run_cmd
    raise SystemExit(
SystemExit: Command ['git', 'checkout', '16:28:19.306136 git.c:476               trace: built-in: git rev-parse --abbrev-ref HEAD\nmaster'] failed(1): '16:28:19.381636 git.c:476               trace: built-in: git checkout '16:28:19.306136 git.c:476               trace: built-in: git rev-parse --abbrev-ref HEAD
master'
error: pathspec '16:28:19.306136 git.c:476               trace: built-in: git rev-parse --abbrev-ref HEAD
master' did not match any file(s) known to git
'
Aborting: service call failed:  /usr/lib/obs/service/obs_scm --versionprefix 0.8.0+git --url https://github.com/git-bug/git-bug.git --scm git --changesgenerate enable --changesauthor [email protected] --outdir /home/matej/build/devel:tools:scm/git-bug/tmpoedlmd__.obs_scm.service
16:28:19.479600 git.c:476               trace: built-in: git config --bool core.sparseCheckout
16:28:19.485960 git.c:476               trace: built-in: git config --bool bash.showDirtyState
16:28:19.489683 git.c:476               trace: built-in: git diff --no-ext-diff --quiet
16:28:19.493232 git.c:476               trace: built-in: git diff --no-ext-diff --cached --quiet
16:28:19.498371 git.c:476               trace: built-in: git rev-parse --verify --quiet refs/stash
16:28:19.504233 git.c:476               trace: built-in: git config --bool bash.showUntrackedFiles
 $

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions