+chiark-utils (4.2.1~~iwj3) unstable; urgency=low
+
+ * git-cache-proxy: postpone chdir so Housekeeping lock and stamp
+ and up in the right directory.
+
+ -- Ian Jackson <ijackson@chiark.greenend.org.uk> Mon, 11 Nov 2013 13:43:47 +0000
+
chiark-utils (4.2.1~~iwj2) unstable; urgency=low
New utility:
servinfo "sharing";
lockfile \*LOCK, $lock, LOCK_SH; # NB releases and relocks
- if (chdir $gitd) {
+ if (stat $gitd) {
return 1;
}
- $!==ENOENT or fail "chdir $gitd: $!";
+ $!==ENOENT or fail "stat $gitd: $!";
# Well, err, someone must have taken the lock in between
# and garbage collected it. How annoying.
sub runcommand () {
servinfo "serving";
+
+ chdir $gitd or fail "chdir $gitd: $!";
+
exec qw(git-upload-pack --strict --timeout=1000 .)
or fail "exec git-upload-pack: $!";
}