hg-to-git: abort if the project directory is not a hg repo
commit2553ede5a9b09260be69de72b60e5038f5452c44
authorMiklos Vajna <vmiklos@frugalware.org>
Sun, 6 Jul 2008 03:15:18 +0000 (6 05:15 +0200)
committerJunio C Hamano <gitster@pobox.com>
Sun, 6 Jul 2008 06:35:11 +0000 (5 23:35 -0700)
treea78a971e64e281e309cc337134ba9e48fcbe4dee
parent6376cffaebe40947eea9afb4ae6df05a6ac59ae8
hg-to-git: abort if the project directory is not a hg repo

Check the exit code of the first hg command, and abort to avoid a later
ValueError exception.

Signed-off-by: Miklos Vajna <vmiklos@frugalware.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
contrib/hg-to-git/hg-to-git.py