mirror of
https://github.com/awfixers-stuff/src.git
synced 2026-03-26 20:46:00 +00:00
create src
This commit is contained in:
21
src-status/tests/fixtures/status_unchanged.sh
Executable file
21
src-status/tests/fixtures/status_unchanged.sh
Executable file
@@ -0,0 +1,21 @@
|
||||
#!/usr/bin/env bash
|
||||
set -eu -o pipefail
|
||||
|
||||
git init -q
|
||||
|
||||
touch empty
|
||||
echo -n "content" > executable
|
||||
chmod +x executable
|
||||
|
||||
mkdir dir
|
||||
echo -n "other content" > dir/content
|
||||
mkdir dir/sub-dir
|
||||
(cd dir/sub-dir && ln -sf ../content symlink)
|
||||
|
||||
git add -A
|
||||
git update-index --chmod=+x executable # For Windows.
|
||||
git commit -m "Commit"
|
||||
|
||||
touch ./empty ./executable ./dir/content ./dir/sub-dir/symlink
|
||||
|
||||
git reset # ensure index timestamp is large enough to not mark everything racy
|
||||
Reference in New Issue
Block a user