Skip to content

Commit 5ff106a

Browse files
Improving how we escape single quotes refs #129 #5 #112 #95 #39
1 parent dbfcb40 commit 5ff106a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/git/lib.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def run_command(git_cmd, &block)
829829
end
830830

831831
def escape(s)
832-
"'#{s && s.to_s.gsub("'","\\'")}'"
832+
"'#{s && s.to_s.gsub('\'','\'"\'"\'')}'"
833833
end
834834

835835
end

0 commit comments

Comments
 (0)