jenkinsci / jenkinsci/git-plugin

[JENKINS-69760] "git lfs install" fails on Windows agents with git plugin v4.12.1

Open
#3,756 5 comments 0 reactions 0 assignees View on GitHub
component:git-plugin imported-jira-issue priority:major resolution:unresolved
Dominant language
Java
Stars
694
Forks
1.1k
Avg merge
1h 29m
Merged PRs (30d)
3

Description

The v4.12.1 git plugin breaks when doing "git lfs install" during a Jenkins job. The attached image shows the error. It also breaks the command on the machine in the repo directory. It works when I delete the repo folder on the machine and rerun the job, but when I re-run it again it will always break.

Error has a weird path "\NUL:\pre-push" and saying that the path is incorrect. Not sure why it cannot go to .git\pre-push.

The issue was never there. I can confirm that having the git plugin on v4.11.5 works really fine.

 

---
Originally reported by rayanmoarkech, imported from: "git lfs install" fails on Windows agents with git plugin v4.12.1


  • status: Open
  • priority: Major
  • component(s): git-plugin
  • resolution: Unresolved
  • votes: 0
  • watchers: 2
  • imported: 2025-12-02

Raw content of original issue

The v4.12.1 git plugin breaks when doing "git lfs install" during a Jenkins job. The attached image shows the error. It also breaks the command on the machine in the repo directory. It works when I delete the repo folder on the machine and rerun the job, but when I re-run it again it will always break.

Error has a weird path "\NUL:\pre-push" and saying that the path is incorrect. Not sure why it cannot go to .git\pre-push.

The issue was never there. I can confirm that having the git plugin on v4.11.5 works really fine.

 

environment

```
Jenkins: v2.361.1

Git Plugin: v4.12.1
```

1 attachment

- [Screenshot 2022-10-01 at 9.10.03 PM.png](https://issues.jenkins.io/secure/attachment/59184/Screenshot%202022-10-01%20at%209.10.03%20PM.png)
> ![Screenshot 2022-10-01 at 9.10.03 PM.png](https://issues.jenkins.io/secure/attachment/59184/Screenshot%202022-10-01%20at%209.10.03%20PM.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.