robwierzbowski / grunt-build-control

Version control your built code.
MIT License
379 stars 36 forks source link

Clone with custom config #66

Closed brunowego closed 9 years ago

brunowego commented 9 years ago

I have a specific case where I need clone with this follow config:

git config http.sslVerify false

Any idea how do this? Thanks!

brunowego commented 9 years ago

I have tried with this config, but not works:

// Automated deploy task
module.exports = {
  options: {
    commit: true,
    push: true,
    message: 'Built %sourceName% from commit %sourceCommit% on branch %sourceBranch%',
    connectCommits: false,
    config: {
      'http.sslVerify': false
    }
  },
  dist: {
    ... 
  }
};
kevinawoo commented 9 years ago

I'm stumped, I just added a test case to verify that it works. 026f73a4836ddc8b61de20d1b38dcc6a682182d6

kevinawoo commented 9 years ago

It just dawned on me, are you trying to add the options after dist repo was initialized?

If so, a quick fix would be to delete dist/.git folder and have build control init it again.

I'll make a fix for it as soon as I got time.

brunowego commented 9 years ago

Works like a charm! Thanks.