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 1f44c94 commit 792422fCopy full SHA for 792422f
lib/git/lib.rb
@@ -1135,7 +1135,7 @@ def stashes_all
1135
File.open(filename) do |f|
1136
f.each_with_index do |line, i|
1137
m = line.match(/^[^:]+:(.*)$/)
1138
- arr << [i, m[1].strip]
+ arr << [i, (m ? m[1].strip : "MISNAMED")]
1139
end
1140
1141
tests/units/test_stashes.rb
@@ -42,7 +42,9 @@ def test_stashes_all
42
43
stashes = g.branch.stashes.all
44
45
- assert(stashes[0].include?('testing-stash-all'))
+ assert(stashes[0].include?('testing: stash-all'))
46
+
47
+ # TODO check MISNAMED stash message resilience
48
49
50
0 commit comments