Skip to content

Commit

Permalink
A8S-1964: add 'version' string to 'buildpack.toml'
Browse files Browse the repository at this point in the history
  • Loading branch information
khaledavarteq committed Mar 13, 2024
1 parent 32d6c95 commit e1f8bd0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@
.idea
/.bin
/build
/out
1 change: 1 addition & 0 deletions buildpack.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ api = "0.8"
id = "anynines/gitcredentials"
keywords = ["git", "credentials"]
name = "GIT credentials"
version = "{{.version}}"

[[buildpack.licenses]]
type = "MIT License"
Expand Down
7 changes: 3 additions & 4 deletions git/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -175,11 +175,10 @@ func (e BuildEnvironment) Initialize() error {
"credential.helper",
strings.Join([]string{
"'",
"cache",
"--timeout",
string(defaultTimeout),
strings.Join([]string{"cache", "--timeout", string(defaultTimeout)}, " "),
"'",
}, " "),
},
""),
})
}

Expand Down

0 comments on commit e1f8bd0

Please sign in to comment.