Skip to content

gitcommit CWD doesn't seem to work properly #105

@camsjams

Description

@camsjams

Using this config:

grunt.initConfig({
    gitcommit: {
        'default': {
            options: {
                message: 'test',
                cwd: '../../builds/'
            },
            files: [{
                src: ['release.tar'],
                expand: true,
                cwd: '../../builds/',
            }]
        }
    }
})

It fails to commit as the resulting action is to make the CWD = ../../builds/ as expected, but then tries to find the file as ../../builds/release.tar, which throws a fatal error in the git command due to files being used outside the working directory (of git).

Any ideas about how to get around this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions