about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--redo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/redo.c b/redo.c
index 9b893ae..181e3c4 100644
--- a/redo.c
+++ b/redo.c
@@ -901,7 +901,6 @@ record_deps(int targetc, char *targetv[])
 		return;
 
 	fchdir(dir_fd);
-	compute_uprel();
 
 	for (targeti = 0; targeti < targetc; targeti++) {
 		fd = open(targetv[targeti], O_RDONLY);
@@ -981,6 +980,7 @@ main(int argc, char *argv[])
 		redo_ifchange(argc, argv);
 		procure();
 	} else if (strcmp(program, "redo-ifchange") == 0) {
+		compute_uprel();
 		redo_ifchange(argc, argv);
 		record_deps(argc, argv);
 		procure();