Junio C Hamano
3 years ago
11 changed files with 108 additions and 5 deletions
@ -0,0 +1,21 @@
@@ -0,0 +1,21 @@
|
||||
Git v2.30.4 Release Notes |
||||
========================= |
||||
|
||||
This release contains minor fix-ups for the changes that went into |
||||
Git 2.30.3, which was made to address CVE-2022-24765. |
||||
|
||||
* The code that was meant to parse the new `safe.directory` |
||||
configuration variable was not checking what configuration |
||||
variable was being fed to it, which has been corrected. |
||||
|
||||
* '*' can be used as the value for the `safe.directory` variable to |
||||
signal that the user considers that any directory is safe. |
||||
|
||||
|
||||
|
||||
Derrick Stolee (2): |
||||
t0033: add tests for safe.directory |
||||
setup: opt-out of check with safe.directory=* |
||||
|
||||
Matheus Valadares (1): |
||||
setup: fix safe.directory key not being checked |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Git Documentation/RelNotes/2.31.3.txt Release Notes |
||||
========================= |
||||
|
||||
This release merges up the fixes that appear in v2.31.3. |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Git Documentation/RelNotes/2.32.2.txt Release Notes |
||||
========================= |
||||
|
||||
This release merges up the fixes that appear in v2.32.2. |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Git Documentation/RelNotes/2.33.3.txt Release Notes |
||||
========================= |
||||
|
||||
This release merges up the fixes that appear in v2.33.3. |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Git Documentation/RelNotes/2.34.3.txt Release Notes |
||||
========================= |
||||
|
||||
This release merges up the fixes that appear in v2.34.3. |
@ -0,0 +1,4 @@
@@ -0,0 +1,4 @@
|
||||
Git Documentation/RelNotes/2.35.3.txt Release Notes |
||||
========================= |
||||
|
||||
This release merges up the fixes that appear in v2.35.3. |
@ -1 +1 @@
@@ -1 +1 @@
|
||||
Documentation/RelNotes/2.35.2.txt |
||||
Documentation/RelNotes/2.35.3.txt |
@ -0,0 +1,49 @@
@@ -0,0 +1,49 @@
|
||||
#!/bin/sh |
||||
|
||||
test_description='verify safe.directory checks' |
||||
|
||||
. ./test-lib.sh |
||||
|
||||
GIT_TEST_ASSUME_DIFFERENT_OWNER=1 |
||||
export GIT_TEST_ASSUME_DIFFERENT_OWNER |
||||
|
||||
expect_rejected_dir () { |
||||
test_must_fail git status 2>err && |
||||
grep "safe.directory" err |
||||
} |
||||
|
||||
test_expect_success 'safe.directory is not set' ' |
||||
expect_rejected_dir |
||||
' |
||||
|
||||
test_expect_success 'safe.directory does not match' ' |
||||
git config --global safe.directory bogus && |
||||
expect_rejected_dir |
||||
' |
||||
|
||||
test_expect_success 'path exist as different key' ' |
||||
git config --global foo.bar "$(pwd)" && |
||||
expect_rejected_dir |
||||
' |
||||
|
||||
test_expect_success 'safe.directory matches' ' |
||||
git config --global --add safe.directory "$(pwd)" && |
||||
git status |
||||
' |
||||
|
||||
test_expect_success 'safe.directory matches, but is reset' ' |
||||
git config --global --add safe.directory "" && |
||||
expect_rejected_dir |
||||
' |
||||
|
||||
test_expect_success 'safe.directory=*' ' |
||||
git config --global --add safe.directory "*" && |
||||
git status |
||||
' |
||||
|
||||
test_expect_success 'safe.directory=*, but is reset' ' |
||||
git config --global --add safe.directory "" && |
||||
expect_rejected_dir |
||||
' |
||||
|
||||
test_done |
Loading…
Reference in new issue