Skip to content
Permalink
Browse files

Fallback to an invalid branch name if no branch found

  • Loading branch information...
nobu committed May 9, 2019
1 parent eb84b33 commit 025206d0dd29266771f166eb4f59609af602213a
Showing with 1 addition and 0 deletions.
  1. +1 −0 tool/vcs.rb
@@ -403,6 +403,7 @@ def self.get_revisions(path, srcdir = nil)
(branch = branch_list[0]).strip! unless branch_list.empty?
end
branch.chomp!
branch = ":detached:" if branch.empty?
upstream = cmd_read_at(srcdir, [gitcmd + %W[branch --list --format=%(upstream:short) #{branch}]])
upstream.chomp!
title = cmd_read_at(srcdir, [gitcmd + %W[log --format=%s -n1 #{upstream}..HEAD]])

0 comments on commit 025206d

Please sign in to comment.
You can’t perform that action at this time.