Skip to content

Commit 2874863

Browse files
authored
Replace File.exists? with File.exist? for Ruby 3.2 compatibility
1 parent b234dda commit 2874863

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/server/post-receive.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ $stdin.each_line do |line|
100100
Dir.chdir environment_path
101101
do_cmd("git fetch --all")
102102
do_cmd("git reset --hard 'origin/#{branchname}'")
103-
if File.exists? "#{environment_path}/.gitmodules"
103+
if File.exist? "#{environment_path}/.gitmodules"
104104
# ensure that we remove deleted sub modules too
105105
do_cmd("git status --short").split("\n").each do |file|
106106
# ?? old_submodule/

0 commit comments

Comments
 (0)