Skip to content

Commit

Permalink
Merge pull request #3 from piroz/fix_tags_slash
Browse files Browse the repository at this point in the history
Fixed a bug when tags contained slash
  • Loading branch information
44uk committed May 23, 2017
2 parents 5a0c387 + 468a1ca commit 7fb3ee8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion git-export-diff.rb
Expand Up @@ -78,7 +78,7 @@
desc = %x[git describe --contains --all #{sha}]
name = case desc
when /^tags/
desc[/tags\/(\w+)\^0/, 1].strip
desc[/tags\/([\w\/]+)\^0/, 1].strip
when /^remotes/
desc[/remotes\/(\w+\/\w+)/, 1].gsub("/", "-").strip + "-#{sha[0,7]}"
else
Expand Down

0 comments on commit 7fb3ee8

Please sign in to comment.