This repository was archived by the owner on Apr 14, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ module.exports = function(options) {
51
51
cmdRevParse . stdout . on ( 'data' , function ( data ) {
52
52
if ( options . debug ) gutil . log ( gutil . colors . magenta ( 'git rev-parse: ' ) + data . toString ( ) . trim ( ) ) ;
53
53
branch = data . toString ( ) . trim ( ) ;
54
- if ( branch . indexOf ( '/' ) > - 1 ) {
55
- branch = branch . substr ( branch . lastIndexOf ( '/' ) + 1 ) ;
54
+ if ( branch . indexOf ( 'refs/heads /' ) > - 1 ) {
55
+ branch = branch . substr ( branch . lastIndexOf ( 'refs/heads /' ) + 1 ) ;
56
56
}
57
57
gutil . log ( gutil . colors . yellow ( 'Current branch: ' + branch ) ) ;
58
58
} ) ;
@@ -73,8 +73,8 @@ module.exports = function(options) {
73
73
} ) ;
74
74
} else {
75
75
branch = process . env [ 'GIT_BRANCH' ] ;
76
- if ( branch . indexOf ( '/' ) > - 1 ) {
77
- branch = branch . substr ( branch . lastIndexOf ( '/' ) + 1 ) ;
76
+ if ( branch . indexOf ( 'refs/heads /' ) > - 1 ) {
77
+ branch = branch . substr ( branch . lastIndexOf ( 'refs/heads /' ) + 1 ) ;
78
78
}
79
79
var found = false ;
80
80
options . branches . forEach ( function ( b ) {
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " gulp-deploy-git" ,
3
- "version" : " 0.4.3 " ,
3
+ "version" : " 0.4.4 " ,
4
4
"description" : " Deploy Git projects to remote Git repositories." ,
5
5
"author" :
" Thomas Lokshall <[email protected] >" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments