Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gitadd: Will only add one file when multiple files provided. #76

Open
nickpelton opened this issue Sep 16, 2014 · 1 comment
Open

Gitadd: Will only add one file when multiple files provided. #76

nickpelton opened this issue Sep 16, 2014 · 1 comment

Comments

@nickpelton
Copy link

node v0.10.26
grunt-git 0.3.0-alpha

Issue when configuring files to add. It will only ever add one file. I've successfully gitclone into a subdirectory folder build/package/, modified some files in the repo, then try to gitadd the updated files. gitadd config below:

gitadd: {
      task: {
        options: {
          force: true,
          cwd: "build/package"
        },
        files: {
          src: ['bower.json','package.json','dist/script.js']
        }
      }
    },

During the grunt task it only adds one file (package.json). In the foreach loop of the command_add.js, updating files.src to files.org.src seems to fix the problem - all files will then be committed.

Not sure if it's a bug or a issue with my config.

@toddhgardner
Copy link

I tracked down this issue, which we had in our windows environment. Rather than using files.orig.src in the commands, I think we should use task.data.files.src. I am uncertain why, but files.src is always being truncated down to a single element. Pull Request Pending.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants