From 187cbd866f91e66145eab800e2e1ce17919825ca Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Wed, 16 Nov 2016 15:53:50 -0500 Subject: [PATCH] attempt-backport: use the "origin" git remote Refs: https://github.com/nodejs/github-bot/pull/90 --- scripts/attempt-backport.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/attempt-backport.js b/scripts/attempt-backport.js index f08b775c..fd2dacf9 100644 --- a/scripts/attempt-backport.js +++ b/scripts/attempt-backport.js @@ -161,13 +161,13 @@ function attemptBackport (options, version, isLTS, cb) { } function gitCheckout () { - options.logger.debug(`checking out upstream/v${version}.x-staging...`) - wrapCP('git', ['checkout', `upstream/v${version}.x-staging`], gitReset) + options.logger.debug(`checking out origin/v${version}.x-staging...`) + wrapCP('git', ['checkout', `origin/v${version}.x-staging`], gitReset) } function gitReset () { - options.logger.debug(`resetting upstream/v${version}.x-staging...`) - wrapCP('git', ['reset', `upstream/v${version}.x-staging`, '--hard'], fetchDiff) + options.logger.debug(`resetting origin/v${version}.x-staging...`) + wrapCP('git', ['reset', `origin/v${version}.x-staging`, '--hard'], fetchDiff) } function fetchDiff () {