Re: [PATCH] pack-objects: Allow missing base objects when creating thin packs

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Nicolas Pitre <nico@...>
Cc: Junio C Hamano <gitster@...>, <git@...>
Date: Tuesday, August 12, 2008 - 2:18 pm

Nicolas Pitre <nico@cam.org> wrote:

Isn't the exit status of the subshell the exit status of the last
command in the subshell?

I just changed the test line to compare to "x$C" instead of $C
and it correctly detected the error condition:

$ git diff
diff --git a/t/t5306-pack-nobase.sh b/t/t5306-pack-nobase.sh
index 503e9d4..7c55e9e 100755
--- a/t/t5306-pack-nobase.sh
+++ b/t/t5306-pack-nobase.sh
@@ -62,7 +62,7 @@ test_expect_success \
       test $(git rev-parse HEAD) = $B

       git pull ../patch_clone/.git &&
-      test $(git rev-parse HEAD) = $C
+      test $(git rev-parse HEAD) = x$C
      )
     '

$ ./t5306-pack-nobase.sh
*   ok 1: setup base
*   ok 2: setup patch_clone
* FAIL 3: indirectly clone patch_clone
        (mkdir user_clone &&
              cd user_clone &&
              git init &&
              git pull ../.git &&
              test $(git rev-parse HEAD) = $B

              git pull ../patch_clone/.git &&
              test $(git rev-parse HEAD) = x$C
             )

*   ok 4: clone of patch_clone is incomplete
* failed 1 among 4 test(s)

-- 
Shawn.
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
RFC: Allow missing objects during packing, Shawn O. Pearce, (Mon Aug 11, 2:28 pm)
Re: RFC: Allow missing objects during packing, Junio C Hamano, (Mon Aug 11, 6:39 pm)
Re: RFC: Allow missing objects during packing, Shawn O. Pearce, (Mon Aug 11, 6:44 pm)
Re: RFC: Allow missing objects during packing, Shawn O. Pearce, (Mon Aug 11, 9:28 pm)
Re: RFC: Allow missing objects during packing, Nicolas Pitre, (Tue Aug 12, 12:44 am)
Re: [PATCH] pack-objects: Allow missing base objects when cr..., Shawn O. Pearce, (Tue Aug 12, 2:18 pm)
Re: RFC: Allow missing objects during packing, Junio C Hamano, (Mon Aug 11, 10:08 pm)