Skip to content

Commit

Permalink
Merge pull request #399 from nicolaiskogheim/git-archive-file
Browse files Browse the repository at this point in the history
archive-file: cleaner way to get current branch
  • Loading branch information
hemanth committed Jul 25, 2015
2 parents 7d1ede1 + 95db4e7 commit b99a846
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/git-archive-file
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

# extract current branch name
BRANCH=$(git name-rev HEAD 2> /dev/null | awk "{ print \$2 }")
BRANCH=$(git rev-parse --abbrev-ref HEAD 2> /dev/null)

# get name of the most top folder of current directory, used for the
# output filename
Expand Down

0 comments on commit b99a846

Please sign in to comment.