summaryrefslogtreecommitdiff
path: root/git2log
diff options
context:
space:
mode:
authorSteffen Winterfeldt <wfeldt@opensuse.org>2011-04-18 17:43:30 +0200
committerSteffen Winterfeldt <wfeldt@opensuse.org>2011-04-18 17:43:30 +0200
commit510918a92a9aa7f3b9318012bf90e911576479bc (patch)
tree72ff2b65e3f3df242ec74fc779cd2b8fd1669100 /git2log
parentca2d58de4008b98c5767c56369a8331024b0879e (diff)
- fix script in case we are on no branch
Diffstat (limited to 'git2log')
-rwxr-xr-xgit2log2
1 files changed, 2 insertions, 0 deletions
diff --git a/git2log b/git2log
index 0e6a78d..70ad48f 100755
--- a/git2log
+++ b/git2log
@@ -39,6 +39,8 @@ for (`git branch`) {
}
}
+$branch = "master" if $branch eq '(no';
+
die "no branch?\n" unless $branch;
# print STDERR "writing log for branch $branch\n";