From 0abb534f09da2d1780d175a251ef5e19abf3459f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Iiro=20Ja=CC=88ppinen?= Date: Wed, 19 Jun 2019 11:43:11 +0300 Subject: [PATCH] fix: use save instead of push for backwards comp --- src/gitWorkflow.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gitWorkflow.js b/src/gitWorkflow.js index 6464b7b44..cf830885f 100644 --- a/src/gitWorkflow.js +++ b/src/gitWorkflow.js @@ -7,7 +7,7 @@ const execGit = require('./execGit') async function saveStagedFiles(options) { debug('Saving modified files...') // Stash changed changes - await execGit(['stash', 'push', '-m temporary lint-staged stash'], options) + await execGit(['stash', 'save', 'temporary lint-staged stash'], options) // Restore changed files back await execGit(['stash', 'apply', '--index'], options)