mercurial/__init__.py
author Ross Lagerwall <rosslagerwall@gmail.com>
Fri, 08 Feb 2013 08:02:57 -0600
changeset 18570 dcf2d6fdf630
parent 0 9117c6561b0b
child 27220 4374d819ccd5
permissions -rw-r--r--
convert/git: catch errors from modern git-ls-remote (issue3428) Since git v1.7.8.2-327-g926f1dd (the change was first released in git 1.7.10), git does not return non-zero when "git ls-remote --tags ..." is run and the repository is damaged. This causes the "damaged repository with missing commit" test in test-convert-git.t to unexpectedly succeed. Fix by aborting if git outputs any lines beginning with "error:", which required adding some subprocess use in convert/git.py.