]> git.xonotic.org Git - xonotic/div0-gittools.git/blobdiff - git-branch-manager
fix author email when unmerging
[xonotic/div0-gittools.git] / git-branch-manager
index 2d319857a9024d2ef0e470442c09873601785af4..1ab7dda1759df5adefbf48b1c941af09493ecfcd 100755 (executable)
@@ -167,9 +167,10 @@ sub unmerge_commit($)
                        or die "git-log: $!";
                for(split /\n/, $msg)
                {
-                       if(/^Author:\s*(.*)/)
+                       if(/^Author:\s*(.*) <(.*)>/)
                        {
                                $author = $1;
+                               $email = $2;
                        }
                        elsif(/^AuthorDate:\s*(.*)/)
                        {