From: David Turner Date: Fri, 15 Sep 2017 22:00:03 GMT Subject: RE: [PATCH v6 10/12] fsmonitor: add test cases for fsmonitor extension Message-ID: In-Reply-To: <20170915192043.4516-11-benpeart@microsoft.com> > -----Original Message----- > +dirty_repo () { > + : >untracked && > + : >dir1/untracked && > + : >dir2/untracked && > + echo 1 >modified && > + echo 2 >dir1/modified && > + echo 3 >dir2/modified && > + echo 4 >new && > + echo 5 >dir1/new && > + echo 6 >dir2/new If I add an untracked file named dir3/untracked to dirty_repo (and write_integration_script), then "status doesn't detect unreported modifications", below, fails. Did I do something wrong, or does this turn up a bug? > + test_expect_success "setup preloadIndex to $preload_val" ' > + git config core.preloadIndex $preload_val && > + if [ $preload_val -eq true ] "-eq" is for numeric equality in POSIX shell. So this works if your /bin/sh is bash but not if it's e.g. dash. This happens twice more below. Use "=" instead.