diff options
author | Stefan Haller <stefan@haller-berlin.de> | 2023-07-01 16:22:32 +0200 |
---|---|---|
committer | Stefan Haller <stefan@haller-berlin.de> | 2023-07-10 15:09:17 +0200 |
commit | 30ce7c8085b0ca67d84451ad8607116c9e038fae (patch) | |
tree | fefbf1f2f750917c0fa44ca7e101619a0a76ed94 /pkg/commands/git_commands/stash_test.go | |
parent | 1827380c69f00288fe3c8e6dfb91775c6be4ffa9 (diff) |
Replace uses of "git stash save" with "git stash push"
Save has been deprecated for a while, push is the recommended way to save a
stash. Push has been available since 2.13, so we can use it without problems.
Diffstat (limited to 'pkg/commands/git_commands/stash_test.go')
-rw-r--r-- | pkg/commands/git_commands/stash_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pkg/commands/git_commands/stash_test.go b/pkg/commands/git_commands/stash_test.go index f1a151cd8..1c8976c6d 100644 --- a/pkg/commands/git_commands/stash_test.go +++ b/pkg/commands/git_commands/stash_test.go @@ -37,10 +37,10 @@ func TestStashPop(t *testing.T) { func TestStashSave(t *testing.T) { runner := oscommands.NewFakeRunner(t). - ExpectGitArgs([]string{"stash", "save", "A stash message"}, "", nil) + ExpectGitArgs([]string{"stash", "push", "-m", "A stash message"}, "", nil) instance := buildStashCommands(commonDeps{runner: runner}) - assert.NoError(t, instance.Save("A stash message")) + assert.NoError(t, instance.Push("A stash message")) runner.CheckForMissingCalls() } |