17 lines
730 B
Diff
17 lines
730 B
Diff
--- 9.0.3 2024-12-12 08:06:13.000000000 +0100
|
|
+++ aneksajo 2024-12-16 08:23:15.000000000 +0100
|
|
@@ -457,12 +457,13 @@
|
|
}
|
|
|
|
// AllowLFSFiltersArgs return globalCommandArgs with lfs filter, it should only be used for tests
|
|
+// It also re-enables git-credential(1), which is used to test git-annex's HTTP support
|
|
func AllowLFSFiltersArgs() TrustedCmdArgs {
|
|
// Now here we should explicitly allow lfs filters to run
|
|
filteredLFSGlobalArgs := make(TrustedCmdArgs, len(globalCommandArgs))
|
|
j := 0
|
|
for _, arg := range globalCommandArgs {
|
|
- if strings.Contains(string(arg), "lfs") {
|
|
+ if strings.Contains(string(arg), "lfs") || strings.Contains(string(arg), "credential") {
|
|
j--
|
|
} else {
|
|
filteredLFSGlobalArgs[j] = arg
|