summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
Diffstat (limited to 'bin')
-rwxr-xr-xbin/rbot8
1 files changed, 4 insertions, 4 deletions
diff --git a/bin/rbot b/bin/rbot
index 94634458..1a879380 100755
--- a/bin/rbot
+++ b/bin/rbot
@@ -48,13 +48,13 @@ if $version =~ /svn/
git_out = `git status`
git_out.match(/^# On branch (.*)\n/)
- branch = $1
+ branch = $1.dup || "unknown"
changed = git_out.match(/^# Change(.*)\n/)
- rev = " @ #{`git rev-parse HEAD`[0..6]}"
+ rev = "revision "
+ rev << `git rev-parse HEAD`[0..5]
rev << ", local changes" if changed
- $version << "-#{branch}" unless branch.empty?
- $version << rev
+ $version << " (#{branch} branch, #{rev})"
else
up = File.dirname(__FILE__) + "/.."
rev = " (unknown revision)"