Revert "REMOVE ME hacks on hacks on hacks"

This reverts commit 35d9c3dfff.
This commit is contained in:
joshaber
2015-11-21 06:08:13 -08:00
parent 5648cd633e
commit cc84246e4d

View File

@@ -5,9 +5,9 @@ module.exports = (grunt) ->
{spawn} = require('./task-helpers')(grunt)
getVersion = (callback) ->
releasableBranches = ['stable', 'beta', 'upload-to-s3']
releasableBranches = ['stable', 'beta']
channel = grunt.config.get('atom.channel')
shouldUseCommitHash = false # if channel in releasableBranches then false else true
shouldUseCommitHash = if channel in releasableBranches then false else true
inRepository = fs.existsSync(path.resolve(__dirname, '..', '..', '.git'))
{version} = require(path.join(grunt.config.get('atom.appDir'), 'package.json'))
if shouldUseCommitHash and inRepository