-
-
Notifications
You must be signed in to change notification settings - Fork 314
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: default to creating file-symlinks if it is dangling on Windows (#…
…1354) This behaviour is the same as in Git.
- Loading branch information
Showing
4 changed files
with
65 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file added
BIN
+9.58 KB
gix-worktree-state/tests/fixtures/generated-archives/make_dangling_symlink.tar.xz
Binary file not shown.
11 changes: 11 additions & 0 deletions
11
gix-worktree-state/tests/fixtures/make_dangling_symlink.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/bin/bash | ||
set -eu -o pipefail | ||
|
||
git init -q | ||
|
||
target_oid=$(echo -n "non-existing-target" | git hash-object -w --stdin) | ||
git update-index --index-info <<-EOF | ||
120000 $target_oid dangling | ||
EOF | ||
|
||
git commit -m "dangling symlink in index" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters