We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent df63490 commit ed1fcdcCopy full SHA for ed1fcdc
share/genbuild.sh
@@ -13,9 +13,13 @@ else
13
exit 1
14
fi
15
16
+git_check_in_repo() {
17
+ ! { git status --porcelain -uall --ignored "$@" 2>/dev/null || echo '??'; } | grep -q '?'
18
+}
19
+
20
DESC=""
21
SUFFIX=""
-if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" -a "$(git status --porcelain -u no --ignored "$0" | cut -b1)" != "?" ]; then
22
+if [ "${BITCOIN_GENBUILD_NO_GIT}" != "1" -a -e "$(which git 2>/dev/null)" -a "$(git rev-parse --is-inside-work-tree 2>/dev/null)" = "true" ] && git_check_in_repo share/genbuild.sh; then
23
# clean 'dirty' status of touched files that haven't been modified
24
git diff >/dev/null 2>/dev/null
25
0 commit comments