Skip to content

Commit

Permalink
試圖修正打包時版本號名被視為 dirty 的問題
Browse files Browse the repository at this point in the history
Signed-off-by: 林博仁 <[email protected]>
  • Loading branch information
brlin-tw committed May 3, 2017
1 parent 8480fa2 commit 148fbd6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions build.bash
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ determine_package_revision(){
return 0
fi

# Workaround: Make Git don't consider tree is dirty even when it shouldn't because of the existing clean filter
# Why does 'git status' ignore the .gitattributes clean filter? - Stack Overflow
# http://stackoverflow.com/questions/19807979/why-does-git-status-ignore-the-gitattributes-clean-filter
git add -u

if ! git rev-parse --verify HEAD &>/dev/null; then
# git repository is newly initialized
printf "not-version-controlled"
Expand Down

0 comments on commit 148fbd6

Please sign in to comment.