forked from git-for-windows/git
-
Notifications
You must be signed in to change notification settings - Fork 92
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gvfs: add the feature to skip validation of the index' SHA-1
This takes a substantial amount of time, and if the user is reasonably sure that the files' integrity is not compromised, that time can be saved. Signed-off-by: Kevin Willford <kewillf@microsoft.com>
- Loading branch information
Showing
4 changed files
with
53 additions
and
4 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
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
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
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,22 @@ | ||
#!/bin/sh | ||
|
||
test_description='check that read-tree works with core.gvfs config value' | ||
|
||
. ./test-lib.sh | ||
. "$TEST_DIRECTORY"/lib-read-tree.sh | ||
|
||
test_expect_success setup ' | ||
echo one >a && | ||
git add a && | ||
git commit -m initial | ||
' | ||
test_expect_success 'read-tree without core.gvsf' ' | ||
read_tree_u_must_succeed -m -u HEAD | ||
' | ||
|
||
test_expect_success 'read-tree with core.gvfs set to 1' ' | ||
git config core.gvfs 1 && | ||
read_tree_u_must_succeed -m -u HEAD | ||
' | ||
|
||
test_done |