Fix git handler when doing delete remote branch

Issue #645 resolved
Marcin Kuzminski repo owner created an issue

exception that happens

remote: No handlers could be found for logger "rhodecode.lib.vcs.backends.git.repository"
remote: Traceback (most recent call last):
remote:   File "hooks/post-receive", line 31, in <module>
remote:     main()
remote:   File "hooks/post-receive", line 27, in main
remote:     handle_git_post_receive(repo_path, push_data, os.environ)
remote:   File "/home/ubuntu/marcink/rhodecode/rhodecode/lib/", line 337, in <lambda>
remote:     handle_git_receive(repo_path, revs, env, hook_type='post'))
remote:   File "/home/ubuntu/marcink/rhodecode/rhodecode/lib/", line 418, in handle_git_receive
remote:     git_revs += repo.run_git_command(cmd)[0].splitlines()
remote:   File "/home/ubuntu/marcink/rhodecode/rhodecode/lib/vcs/backends/git/", line 126, in run_git_command
remote:     "Original error was:%s" % (cmd, err))
remote: rhodecode.lib.vcs.exceptions.RepositoryError: Couldn't run git command (git -c core.quotepath=false log aff4932bc076d7e20626e403f896982cf637833d..0000000000000000000000000000000000000000 --reverse --pretty=format:"%H").
remote: Original error was:Subprocess exited due to an error:
remote: fatal: Invalid revision range aff4932bc076d7e20626e403f896982cf637833d..0000000000000000000000000000000000000000

note: write the test for this in the integration tests script

Comments (1)

  1. Log in to comment