Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

git.exe lfs fetch fails

Nick Hoddinott
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2022

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.

1 answer

1 accepted

1 vote
Answer accepted
Nick Hoddinott
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
February 9, 2022

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events