mirror of
https://github.com/git/git.git
synced 2026-03-29 19:10:10 +02:00
Merge branch 'master' into next
* master: Documentation/config.txt: GIT_NOTES_REWRITE_REF overrides notes.rewriteRef test-lib: some shells do not let $? propagate into an eval
This commit is contained in:
@@ -1374,10 +1374,6 @@ notes.rewrite.<command>::
|
||||
automatically copies your notes from the original to the
|
||||
rewritten commit. Defaults to `true`, but see
|
||||
"notes.rewriteRef" below.
|
||||
+
|
||||
This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
|
||||
environment variable, which must be a colon separated list of refs or
|
||||
globs.
|
||||
|
||||
notes.rewriteMode::
|
||||
When copying notes during a rewrite (see the
|
||||
@@ -1397,6 +1393,10 @@ notes.rewriteRef::
|
||||
+
|
||||
Does not have a default value; you must configure this variable to
|
||||
enable note rewriting.
|
||||
+
|
||||
This setting can be overridden with the `GIT_NOTES_REWRITE_REF`
|
||||
environment variable, which must be a colon separated list of refs or
|
||||
globs.
|
||||
|
||||
pack.window::
|
||||
The size of the window used by linkgit:git-pack-objects[1] when no
|
||||
|
||||
@@ -73,6 +73,27 @@ then
|
||||
exit 1
|
||||
fi
|
||||
|
||||
clean=no
|
||||
test_expect_success 'tests clean up after themselves' '
|
||||
test_when_finished clean=yes
|
||||
'
|
||||
|
||||
cleaner=no
|
||||
test_expect_code 1 'tests clean up even after a failure' '
|
||||
test_when_finished cleaner=yes &&
|
||||
(exit 1)
|
||||
'
|
||||
|
||||
if test $clean$cleaner != yesyes
|
||||
then
|
||||
say "bug in test framework: cleanup commands do not work reliably"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
test_expect_code 2 'failure to clean up causes the test to fail' '
|
||||
test_when_finished "(exit 2)"
|
||||
'
|
||||
|
||||
################################################################
|
||||
# Basics of the basics
|
||||
|
||||
|
||||
@@ -366,8 +366,9 @@ test_debug () {
|
||||
}
|
||||
|
||||
test_run_ () {
|
||||
test_cleanup='eval_ret=$?'
|
||||
test_cleanup=:
|
||||
eval >&3 2>&4 "$1"
|
||||
eval_ret=$?
|
||||
eval >&3 2>&4 "$test_cleanup"
|
||||
return 0
|
||||
}
|
||||
@@ -583,8 +584,8 @@ test_cmp() {
|
||||
# the test to pass.
|
||||
|
||||
test_when_finished () {
|
||||
test_cleanup="eval_ret=\$?; { $*
|
||||
} && (exit \"\$eval_ret\"); $test_cleanup"
|
||||
test_cleanup="{ $*
|
||||
} && (exit \"\$eval_ret\"); eval_ret=\$?; $test_cleanup"
|
||||
}
|
||||
|
||||
# Most tests can use the created repository, but some may need to create more.
|
||||
|
||||
Reference in New Issue
Block a user