Switch from os.popen() to subprocess.check_output() for running git rev-parse
commitf8792d9c5c6fd26282fd1025e3b6e7abd455ddd5
authorFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 15 Apr 2016 13:39:12 +0000 (15 15:39 +0200)
committerFrej Drejhammar <frej.drejhammar@gmail.com>
Fri, 15 Apr 2016 13:43:21 +0000 (15 15:43 +0200)
tree68c17cdd0181defb6c4b892ddfed843ff8e5e7e5
parent7224e420a75fe1d6a78551522b1f7c5058eed788
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