Skip to content

Commit a01cb97

Browse files
committed
A8S-1964: temp. fix, rem. param '--timeout 3600'
1 parent e1f8bd0 commit a01cb97

File tree

3 files changed

+1
-13
lines changed

3 files changed

+1
-13
lines changed

README.md

-1
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,6 @@ Configuration for this build package can be specfied in [buildpack.toml](./build
5959

6060
| Name | Description | Default value |
6161
|------------|---------------|-----------|
62-
| default_timeout | The default timeout for the GIT credential cache in seconds, set to "3600" to support builds which run longer | "3600" |
6362
| default_protocol | The default protocol. Currently only https is supported. Used as value for `$GIT_CREDENTIALS_PROTOCOL` if the environment variable is not specified | "https" |
6463
| default_host | The default host (don't we all use GitHub ;-)). Used as value for `$GIT_CREDENTIALS_HOST` if the environment variable is not specified | "github.com" |
6564
| default_path | The default path. The path variable allows you to authenticate to different repos using different Git credential. Used as value for `$GIT_CREDENTIALS_PATH` if the environment variable is not specified | "/" |

buildpack.toml

-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ api = "0.8"
1717
pre-package = "./scripts/build.sh"
1818

1919
[metadata.configuration]
20-
default_timeout = "3600"
2120
default_protocol = "https"
2221
default_host = "github.com"
2322
default_path = "/"

git/build.go

+1-11
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ import (
99
"os"
1010
"os/exec"
1111
"path/filepath"
12-
"strings"
1312

1413
"github.com/paketo-buildpacks/packit/v2"
1514
"github.com/paketo-buildpacks/packit/v2/scribe"
@@ -163,22 +162,13 @@ func (e BuildEnvironment) RunGitCommand(args []string) error {
163162
// memory exclusively
164163
func (e BuildEnvironment) Initialize() error {
165164
e.Logger.Process("Initializing GIT credentials cache")
166-
defaultTimeout := "3600"
167-
if len(e.Configuration.DefaultTimeout) > 0 {
168-
defaultTimeout = e.Configuration.DefaultTimeout
169-
}
170165
return e.RunGitCommand([]string{
171166
"git",
172167
"config",
173168
"--replace-all",
174169
"--global",
175170
"credential.helper",
176-
strings.Join([]string{
177-
"'",
178-
strings.Join([]string{"cache", "--timeout", string(defaultTimeout)}, " "),
179-
"'",
180-
},
181-
""),
171+
"cache",
182172
})
183173
}
184174

0 commit comments

Comments
 (0)