We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2e23d47 commit 1f44c94Copy full SHA for 1f44c94
lib/git/lib.rb
@@ -1134,7 +1134,7 @@ def stashes_all
1134
if File.exist?(filename)
1135
File.open(filename) do |f|
1136
f.each_with_index do |line, i|
1137
- m = line.match(/:(.*)$/)
+ m = line.match(/^[^:]+:(.*)$/)
1138
arr << [i, m[1].strip]
1139
end
1140
tests/units/test_stashes.rb
@@ -37,7 +37,8 @@ def test_stashes_all
37
38
assert(g.status.added.assoc('test-file1'))
39
40
- g.branch.stashes.save('testing-stash-all')
+ # NOTE colon is important here
41
+ g.branch.stashes.save('testing: stash-all')
42
43
stashes = g.branch.stashes.all
44
0 commit comments