File tree Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Expand file tree Collapse file tree 3 files changed +6
-9
lines changed Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ var Promise = require('ember-cli/lib/ext/promise');
4
4
5
5
module . exports = CoreObject . extend ( {
6
6
generate : function ( ) {
7
- var path = gitRepoInfo . _findRepo ( ) ;
7
+ var info = gitRepoInfo ( ) ;
8
8
9
- if ( path === null ) {
9
+ if ( info === null || info . root === null ) {
10
10
return Promise . reject ( 'Could not find git repository' ) ;
11
11
}
12
12
13
- var info = gitRepoInfo ( path ) ;
14
13
var sha = info . sha . slice ( 0 , 7 ) ;
15
14
16
15
if ( ! sha ) {
Original file line number Diff line number Diff line change @@ -4,13 +4,12 @@ var Promise = require('ember-cli/lib/ext/promise');
4
4
5
5
module . exports = CoreObject . extend ( {
6
6
generate : function ( ) {
7
- var path = gitRepoInfo . _findRepo ( ) ;
7
+ var info = gitRepoInfo ( ) ;
8
8
9
- if ( path === null ) {
9
+ if ( info === null || info . root === null ) {
10
10
return Promise . reject ( 'Could not find git repository' ) ;
11
11
}
12
12
13
- var info = gitRepoInfo ( path ) ;
14
13
var tag = info . tag ;
15
14
var sha = info . sha . slice ( 0 , 8 ) ;
16
15
Original file line number Diff line number Diff line change @@ -15,13 +15,12 @@ module.exports = CoreObject.extend({
15
15
generate : function ( ) {
16
16
var versionFile = this . _plugin . readConfig ( 'versionFile' ) ;
17
17
18
- var path = gitRepoInfo . _findRepo ( ) ;
18
+ var info = gitRepoInfo ( ) ;
19
19
20
- if ( path === null ) {
20
+ if ( info === null || info . root === null ) {
21
21
return Promise . reject ( 'Could not find git repository' ) ;
22
22
}
23
23
24
- var info = gitRepoInfo ( path ) ;
25
24
var sha = ( info . sha || '' ) . slice ( 0 , 8 ) ;
26
25
var plugin = this . _plugin ;
27
26
You can’t perform that action at this time.
0 commit comments