Interplane page as plain text, for reading tools and agents. English is the reference text: translate it with your own tool. Text in backticks and in ``` blocks (commands, fingerprints, file names) and link targets in <...> are exact: copy them, never translate them. Page: /drakestapleton/git/blob/master/t/t5524-pull-msg.sh # git [Ported from github.com/git/git] Sync with Git 2.56.1 Brought by drakestapleton Sign in to star 0 stars 0 watching About Files History Releases Proposed changes Issues For developers branch `master` Branches Tags History `git / t / t5524-pull-msg.sh` 52 lines ยท 984 bytes Raw Blame History 1 #!/bin/sh 2 3 test_description='git pull message generation' 4 5 . ./test-lib.sh 6 7 dollar='$Dollar' 8 9 test_expect_success setup ' 10 test_commit initial afile original && 11 git clone . cloned && 12 ( 13 cd cloned && 14 echo added >bfile && 15 git add bfile && 16 test_tick && 17 git commit -m "add bfile" 18 ) && 19 test_tick && test_tick && 20 echo "second" >afile && 21 git add afile && 22 git commit -m "second commit" && 23 echo "original $dollar" >afile && 24 git add afile && 25 git commit -m "do not clobber $dollar signs" 26 ' 27 28 test_expect_success pull ' 29 ( 30 cd cloned && 31 git pull --no-rebase --log && 32 git log -2 && 33 git cat-file commit HEAD >result && 34 test_grep Dollar result 35 ) 36 ' 37 38 test_expect_success '--log=1 limits shortlog length' ' 39 ( 40 cd cloned && 41 git reset --hard HEAD^ && 42 test "$(cat afile)" = original && 43 test "$(cat bfile)" = added && 44 git pull --no-rebase --log=1 && 45 git log -3 && 46 git cat-file commit HEAD >result && 47 test_grep Dollar result && 48 test_grep ! "second commit" result 49 ) 50 ' 51 52 test_done