Girocco::Project: more robust method to detect errors when changing HEAD
commit1c229dbfee0db09de2c5db5921bed99dee522f2a
authorJan Krüger <jk@jk.gs>
Mon, 15 Nov 2010 21:19:49 +0000 (15 22:19 +0100)
committerJan Krüger <jk@jk.gs>
Mon, 15 Nov 2010 21:19:49 +0000 (15 22:19 +0100)
treef262f39dea68be1c9d851ac1841c3dd8544c242a
parentf8b44e58d5c42bab81b1a4377da2e99141c2ddf4
Girocco::Project: more robust method to detect errors when changing HEAD

Apparently, Perl does interesting things with the return code of
system(), so instead check $? afterwards... and bypass the shell by
passing system() a list, for added efficiency and security.

Signed-off-by: Jan Krüger <jk@jk.gs>
Girocco/Project.pm