Skip to content

Commit eb40488

Browse files
committed
release-version: fail when untracked files present
See discussion at: https://gitter.im/scijava/scijava-common?at=5f16dbaecb20727cfd3bb7b7
1 parent 7edaa04 commit eb40488

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

release-version.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ Or if you know better, try again with --skip-version-check flag."
164164

165165
# Check that the working copy is clean.
166166
no_changes_pending || die 'There are uncommitted changes!'
167+
test -z "$(git ls-files -o --exclude-standard)" ||
168+
die 'There are untracked files! Please stash them before releasing.'
167169

168170
# Check that we are on the master branch.
169171
test refs/heads/master = "$(git rev-parse --symbolic-full-name HEAD)" ||

0 commit comments

Comments
 (0)