aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgit-construct.pl3
1 files changed, 2 insertions, 1 deletions
diff --git a/git-construct.pl b/git-construct.pl
index 5e97088..4024ef1 100755
--- a/git-construct.pl
+++ b/git-construct.pl
@@ -45,7 +45,8 @@ sub new_repository {
};
}
- my $owner = $repo->run('log', '--reverse', '--pretty=format:%an');
+ # first commiter as a fallback
+ my $owner = ($repo->run('log', '--reverse', '--pretty=format:%an'))[0];
return {
name => $name,