Skip to content
This repository was archived by the owner on Apr 14, 2023. It is now read-only.

Commit 8203fa8

Browse files
author
Thomas Lokshall
committed
Fix the miscount of 1
1 parent 2b9e676 commit 8203fa8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ module.exports = function(options) {
7070
} else {
7171
branch = process.env['GIT_BRANCH'];
7272
if (branch.indexOf('refs/heads/') > -1) {
73-
branch = branch.substr(branch.lastIndexOf('refs/heads/') + 12);
73+
branch = branch.substr(branch.lastIndexOf('refs/heads/') + 11);
7474
}
7575
var found = false;
7676
options.branches.forEach(function (b) {

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "gulp-deploy-git",
3-
"version": "0.4.6",
3+
"version": "0.4.7",
44
"description": "Deploy Git projects to remote Git repositories.",
55
"author": "Thomas Lokshall <[email protected]>",
66
"license": "MIT",

0 commit comments

Comments
 (0)