Switch from os.popen() to subprocess.check_output() for running git rev-parse
commit99d099e70342a999c494b6e934ec1fb845785c86
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 15 Apr 2016 13:39:12 +0000 (15 15:39 +0200)
committerKyle J. McKay <mackyle@gmail.com>
Sun, 26 Jun 2016 04:27:34 +0000 (25 21:27 -0700)
treedccf99a0825f5be3342bbfab81063c9c7e0eff6d
parent6d7bd805afeee84988ea18af6ce9200f129b0955
Switch from os.popen() to subprocess.check_output() for running git rev-parse

os.popen() uses the shell, this is dangerous when the branch-name
contains characters which are interpreted by the shell, therefore switch
to subprocess.check_output() which doesn't involve the shell.

This closes issue #66.
hg2git.py