- # Get information about our remote and calculate the chance for a
- # successfull auto-updat. Based on:
- # http://stackoverflow.com/questions/3258243/check-if-pull-needed-in-git
- system("git fetch $remote") == 0 or die $? >> 8;
- my ($upstream, $local, $base) = qx'git rev-parse ...@{upstream}'; die $? >> 8 if $?;
- $base =~ s/^\^//;
+ # Get information about our remote and calculate the chance for a
+ # successfull auto-update. Based on:
+ # http://stackoverflow.com/questions/3258243/check-if-pull-needed-in-git
+ system("git fetch $remote") == 0 or die "'git fetch $remote' failed\n";
+ my ($upstream, $local, $base) = qx'git rev-parse ...@{upstream}' or die "'git rev-parse' failed\n";