{"thread":{"id":"10213","subject":"[PATCH] t5403-post-checkout-hook.sh: make test operands posix","startedAt":"2007-10-09T12:51:30Z","lastAt":"2007-10-09T13:05:26Z","messageCount":2,"participants":["Gerrit Pape","Lars Hjemli"],"isPatch":true,"patchVersion":1,"patchTotal":null},"messages":[{"id":"55268","messageId":"20071009125130.1343.qmail@bcafc83cd51c05.315fe32.mid.smarden.org","threadId":"10213","inReplyTo":null,"subject":"[PATCH] t5403-post-checkout-hook.sh: make test operands posix","fromName":"Gerrit Pape","fromEmail":"pape@smarden.org","sentAt":"2007-10-09T12:51:30Z","receivedAt":"2007-10-09T12:51:30Z","isPatch":true,"sender":{"key":"pape@smarden.org","avatar":"https://avatars.githubusercontent.com/u/143170252?v=4"},"body":"Signed-off-by: Gerrit Pape <pape@smarden.org>\n---\n t/t5403-post-checkout-hook.sh |    8 ++++----\n 1 files changed, 4 insertions(+), 4 deletions(-)\n\ndiff --git a/t/t5403-post-checkout-hook.sh b/t/t5403-post-checkout-hook.sh\nindex 487abf3..823239a 100755\n--- a/t/t5403-post-checkout-hook.sh\n+++ b/t/t5403-post-checkout-hook.sh\n@@ -39,7 +39,7 @@ test_expect_success 'post-checkout receives the right arguments with HEAD unchan\n         old=$(awk \"{print \\$1}\" clone1/.git/post-checkout.args) &&\n         new=$(awk \"{print \\$2}\" clone1/.git/post-checkout.args) &&\n         flag=$(awk \"{print \\$3}\" clone1/.git/post-checkout.args) &&\n-        test $old = $new -a $flag == 1\n+        test $old = $new -a $flag = 1\n '\n \n test_expect_success 'post-checkout runs as expected ' '\n@@ -52,7 +52,7 @@ test_expect_success 'post-checkout args are correct with git checkout -b ' '\n         old=$(awk \"{print \\$1}\" clone1/.git/post-checkout.args) &&\n         new=$(awk \"{print \\$2}\" clone1/.git/post-checkout.args) &&\n         flag=$(awk \"{print \\$3}\" clone1/.git/post-checkout.args) &&\n-        test $old = $new -a $flag == 1\n+        test $old = $new -a $flag = 1\n '\n \n test_expect_success 'post-checkout receives the right args with HEAD changed ' '\n@@ -60,7 +60,7 @@ test_expect_success 'post-checkout receives the right args with HEAD changed ' '\n         old=$(awk \"{print \\$1}\" clone2/.git/post-checkout.args) &&\n         new=$(awk \"{print \\$2}\" clone2/.git/post-checkout.args) &&\n         flag=$(awk \"{print \\$3}\" clone2/.git/post-checkout.args) &&\n-        test $old != $new -a $flag == 1\n+        test $old != $new -a $flag = 1\n '\n \n test_expect_success 'post-checkout receives the right args when not switching branches ' '\n@@ -68,7 +68,7 @@ test_expect_success 'post-checkout receives the right args when not switching br\n         old=$(awk \"{print \\$1}\" clone2/.git/post-checkout.args) &&\n         new=$(awk \"{print \\$2}\" clone2/.git/post-checkout.args) &&\n         flag=$(awk \"{print \\$3}\" clone2/.git/post-checkout.args) &&\n-        test $old == $new -a $flag == 0\n+        test $old = $new -a $flag = 0\n '\n \n test_done\n-- \n1.5.3.4\n"},{"id":"55273","messageId":"8c5c35580710090605w12442ff9hc86e547053cda242@mail.gmail.com","threadId":"10213","inReplyTo":"20071009125130.1343.qmail@bcafc83cd51c05.315fe32.mid.smarden.org","subject":"Re: [PATCH] t5403-post-checkout-hook.sh: make test operands posix","fromName":"Lars Hjemli","fromEmail":"hjemli@gmail.com","sentAt":"2007-10-09T13:05:26Z","receivedAt":"2007-10-09T13:05:26Z","isPatch":true,"sender":{"key":"hjemli@gmail.com","avatar":null},"body":"On 10/9/07, Gerrit Pape <pape@smarden.org> wrote:\n>  t/t5403-post-checkout-hook.sh |    8 ++++----\n>  1 files changed, 4 insertions(+), 4 deletions(-)\n\nAn identical patch has already been posted:\n\n  http://article.gmane.org/gmane.comp.version-control.git/59952\n\n--\nlarsh\n"}]}