Commit c46221ee authored by Tobias Hunger's avatar Tobias Hunger
Browse files

Fix git branch retrieval in mytasks.pl script



Change-Id: I86ddcff32e697d7bf02217a05e9f5a4e13cc1015
Reviewed-by: default avatarTobias Hunger <tobias.hunger@nokia.com>
parent aca66125
......@@ -64,7 +64,7 @@ my $pos = 0;
sub getDiffOrigin {
my $currentBranch = `git branch | grep "^* "`;
chop $currentBranch;
$currentBranch =~ s/^* //;
$currentBranch =~ s/^\s*\* //;
my $remoteRepo = `git config --local --get branch.$currentBranch.remote`;
chop $remoteRepo;
......@@ -73,7 +73,7 @@ sub getDiffOrigin {
my $remoteBranch = `git config --local --get branch.$currentBranch.merge`;
chop $remoteBranch;
$remoteBranch =~ s!^refts/heads/!!;
$remoteBranch =~ s!^refs/heads/!!;
return "HEAD" if (!$remoteBranch);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment