I have a Git repository that contains Git LFS files. Git.exe is configured in server capabilities and repository authentication is SSH.
When the repository has 'Enable LFS support' unchecked everything works great, but LFS files a
When I check 'Enable LFS support', I get
Caused by: com.atlassian.bamboo.plugins.git.GitCommandException: command ['C:\Program Files\Git\bin\git.exe' lfs fetch
ssh://{removed}@127.0.0.1:59323/{removed}/{removed} refs/heads/development] failed with code 2. Working directory was [E:\bamboo-home\local-working-dir\393217\MA-MSP-JOB1]., stderr:
fetch: Fetching reference refs/heads/development
batch request: 'E:\Program' is not recognized as an internal or external command,
operable program or batch file.: exit status 1
batch request: 'E:\Program' is not recognized as an internal or external command,
operable program or batch file.: exit status 1
batch request: 'E:\Program' is not recognized as an internal or external command,
operable program or batch file.: exit status 1
batch request: 'E:\Program' is not recognized as an internal or external command,
operable program or batch file.: exit status 1
error: failed to fetch some objects from 'https://127.0.0.1/{removed}/{removed}.git/info/lfs'
at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:773)
at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:702)
at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runCommand(GitCommandProcessor.java:693)
at com.atlassian.bamboo.plugins.git.GitCommandProcessor.runLfsFetchCommand(GitCommandProcessor.java:627)
at com.atlassian.bamboo.plugins.git.NativeGitOperationHelper.fetch(NativeGitOperationHelper.java:542)
... 29 more
Failed to prepare the build '{removed}' - Default Job #21 (MA-MSP-JOB1-21)'
I'm running Bamboo on Windows and it's installed in E:\Program Files\Bamboo.
It seems like it's trying to run something in that folder without quotes.
I've added a Bamboo task to run "git lfs install" to ensure that's done.
I'm at a loss to know where to go from here.
For anyone who finds this in future, the issue is this one
and is fixed by setting a path without spaces for the Bamboo temp directory
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.