3775: Update comment
authorTom Clegg <tom@curoverse.com>
Tue, 7 Oct 2014 02:16:56 +0000 (22:16 -0400)
committerTom Clegg <tom@curoverse.com>
Tue, 7 Oct 2014 02:16:56 +0000 (22:16 -0400)
sdk/cli/bin/crunch-job

index 4aecb0e8123fd53a19e9f23f6d885c7b00d686b2..d4c89495101bffdacda2605f6c77f3c59e687bb8 100755 (executable)
@@ -367,10 +367,11 @@ if (!defined $no_clear_tmp) {
 
 my $git_archive;
 if (!defined $git_dir && $Job->{'script_version'} =~ m{^/}) {
-  # If we're in user-land (i.e., not called from crunch-dispatch)
-  # script_version can be an absolute directory path, signifying we
-  # should work straight out of that directory instead of using a git
-  # commit.
+  # If script_version looks like an absolute path, *and* the --git-dir
+  # argument was not given -- which implies we were not invoked by
+  # crunch-dispatch -- we will use the given path as a working
+  # directory instead of resolving script_version to a git commit (or
+  # doing anything else with git).
   $ENV{"CRUNCH_SRC_COMMIT"} = $Job->{'script_version'};
   $ENV{"CRUNCH_SRC"} = $Job->{'script_version'};
 }