]> git.ipfire.org Git - thirdparty/git.git/commitdiff
t5318-commit-graph: remove unused variable
authorSZEDER Gábor <szeder.dev@gmail.com>
Fri, 22 Mar 2019 14:27:25 +0000 (15:27 +0100)
committerJunio C Hamano <gitster@pobox.com>
Sun, 24 Mar 2019 12:37:07 +0000 (21:37 +0900)
This is a remnant from early versions of the commit-graph patch series
[1], when 'git commit-graph --write' printed the hash of the created
commit-graph file, and tests did look at the command's output, because
the commit-graph file's name included that hash as well.

[1] https://public-inbox.org/git/1517348383-112294-6-git-send-email-dstolee@microsoft.com/

Signed-off-by: SZEDER Gábor <szeder.dev@gmail.com>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
t/t5318-commit-graph.sh

index 561796f2809c38d3b5229abd4359f5b72141839e..069e4e28e42d69e7b892112f3ba3743e4e13edac 100755 (executable)
@@ -75,7 +75,7 @@ graph_read_expect() {
 
 test_expect_success 'write graph' '
        cd "$TRASH_DIRECTORY/full" &&
-       graph1=$(git commit-graph write) &&
+       git commit-graph write &&
        test_path_is_file $objdir/info/commit-graph &&
        graph_read_expect "3"
 '