Skip to content
This repository was archived by the owner on Mar 5, 2025. It is now read-only.

Commit 186fe94

Browse files
not all directories are repos
1 parent 7391df2 commit 186fe94

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

config/initializers/wiki.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
if repo_url.present?
1010
upstream = 'origin'
11-
if File.exist?(local_dir)
11+
if File.exist?(File.join(local_dir, '.git'))
1212
output = `cd #{local_dir} && git pull #{upstream} master 2>&1`
1313
if $?.success?
1414
Rails.logger.info "Pulled #{repo_url} to #{local_dir}: #{output}"

0 commit comments

Comments
 (0)