From 4734c22a4f5a7751cfc7bf48091fe23e5a8fab86 Mon Sep 17 00:00:00 2001 From: David Lamparter Date: Fri, 18 Jan 2019 15:14:46 +0100 Subject: [PATCH] tools/tarsource.sh: support FRR as a git submodule a git submodule will have .git as a file instead of a directory... which breaks tarsource.sh. Signed-off-by: David Lamparter --- tools/tarsource.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/tarsource.sh b/tools/tarsource.sh index 110558da0d..2e7ed4411d 100755 --- a/tools/tarsource.sh +++ b/tools/tarsource.sh @@ -133,7 +133,7 @@ onexit() { trap onexit EXIT tmpdir="`mktemp -d -t frrtar.XXXXXX`" -if test -d "$src/.git"; then +if test -e "$src/.git"; then commit="`git -C \"$src\" rev-parse \"${commit:-HEAD}\"`" if $dirty; then -- 2.39.5