e987e68d1cb3af2af122c809ecf35053f6baabd1 hiram Tue Jul 14 19:38:49 2026 -0700 do not bother about uncommited log files in the kent source tree used to update the hubs refs #31811 diff --git src/hg/utils/otto/userRequests/chainNetTrackDb.pl src/hg/utils/otto/userRequests/chainNetTrackDb.pl index 89c74cfe32c..a3080197a0d 100755 --- src/hg/utils/otto/userRequests/chainNetTrackDb.pl +++ src/hg/utils/otto/userRequests/chainNetTrackDb.pl @@ -186,31 +186,31 @@ exit 255; } # blocking exclusive lock on a dotfile inside .git so it stays out of the # tracked tree. Kernel releases the lock on process exit, so no cleanup # is needed. $lockFh stays in scope until script end. my $lockPath = "$kentTree/.git/chainNetTrackDb.lock"; open(my $lockFh, '>>', $lockPath) or die "ERROR: cannot open lock '$lockPath': $!\n"; if (!flock($lockFh, LOCK_EX)) { die "ERROR: cannot acquire lock '$lockPath': $!\n"; } # refuse to run on a dirty tree -- this clone exists only for this script, # so any uncommitted state means something went wrong last time. -my $dirty = `git -C "$kentTree" status --porcelain 2>&1`; +my $dirty = `git -C "$kentTree" status --porcelain --untracked-files=no 2>&1`; if (length($dirty) > 0) { printf STDERR "ERROR: '%s' has uncommitted changes:\n%s", $kentTree, $dirty; exit 255; } my @hits = grep { -d $_ } glob("$kentTree/src/hg/makeDb/trackDb/*/$targetDb"); if (scalar(@hits) != 1) { printf STDERR "ERROR: expected exactly 1 trackDb dir for '%s', found %d:\n", $targetDb, scalar(@hits); printf STDERR " %s\n", $_ for @hits; exit 255; } my $outDir = $hits[0]; my $outFile = "$outDir/$targetDb.$qAcc.chainNet.ra";