Creating a folder with the current git branch as the name
<p>I'm looking for a way to create a local test folder which represents the branch name which should be the current git branch that's checked out.</p>

<p>For instance if you're working on a stylesheet in the branch <code>feature/stable-test</code>, and you run a grunt task that compiles code than as a destination you would get <code>/stable-test/style.css</code>.</p>

<p>I've looked at <a href="https://www.npmjs.com/package/grunt-githash" rel="nofollow">grunt-githash</a> and <a href="https://github.com/damkraw/grunt-gitinfo" rel="nofollow">grunt-gitinfo</a> but they both return a empty object when I query <code>&lt;%= gitinfo.local.branch %&gt;</code>.</p>