diff --git a/hgweb/command-runner.sh b/hgweb/command-runner.sh index e99342567..f94015b03 100644 --- a/hgweb/command-runner.sh +++ b/hgweb/command-runner.sh @@ -36,7 +36,7 @@ echo "" # Run the hg command, simply output to stdout first_char=$(echo $project_code | cut -c1) # Ensure NFS cache is refreshed in case project repo changed in another pod (e.g., project reset) -ls /var/hg/repos/$first_char/$project_code >/dev/null 2>/dev/null # Don't need output; this is enough to refresh NFS dir cache +ls /var/hg/repos/$first_char/$project_code/.hg >/dev/null 2>/dev/null # Don't need output; this is enough to refresh NFS dir cache # Sometimes invalidatedircache is called after deleting a project, so the cd would fail. So exit fast in that case. [ "x$command_name" = "xinvalidatedircache" ] && exit 0 cd /var/hg/repos/$first_char/$project_code