gruntwork-io / gruntwork-io/git-xargs

git-xargs not respecting .gitignore

Open
#53 1 comment 5 reactions 0 assignees View on GitHub
needs design
Dominant language
Go
Stars
1.1k
Forks
75
PR merge metrics
No merged PRs in 30d

Description

**git-xargs version**
What does `git-xargs --version` show?

`git-xargs version v0.0.11`

**Describe the bug**
`git-xargs` is not respecting `.gitignore`

**To Reproduce**
Steps to reproduce the behavior:

```sh
#!/usr/bin/env bash

git-xargs \
--commit-message "Update Yarn Berry to latest canary" \
--repos ../repos.txt \
--branch-name chore/update-yarn-berry-canary \
--loglevel debug \
"$(pwd)/update-yarn-berry-canary.sh"
```

```
#!/usr/bin/env bash

# update-yarn-berry-canary.sh

yarn set version canary
yarn
```

That results in files being added to `node_modules` when, in my `.gitignore` in those projects, I have `node_modules/` listed.

**Expected behavior**

Respect the `.gitignore` (in this case, `node_modules/`)

**Screenshots**
If applicable, add screenshots to help explain your problem.

image

**Additional context**
Add any other context about the problem here.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.