https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=252028
Bug ID: 252028
Summary: sys/conf/newvers.sh: git "-dirty" even when clean
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Some People
Priority: ---
Component: kern
Assignee: [email protected]
Reporter: [email protected]
Created attachment 220789
--> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=220789&action=edit
git_tree_modiied inversion check patch
I've made a tiny shell script to demonstrate the problem, but it looks like the
dirty/clean logic is inverted.
#!/bin/sh -
git_tree_modified()
{
git -c core.checkStat=minimal -c core.fileMode=off diff --quiet
if [ $? -eq 0 ]; then
return 1;
else
return 0;
fi
}
export git=foo
if git_tree_modified; then
git="${git}-dirty"
fi
echo $git
--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"