From 8ba46fa4ac85e3ed710ac94492ac76d41c189772 Mon Sep 17 00:00:00 2001 From: th33xitus Date: Tue, 31 May 2022 17:27:52 +0200 Subject: [PATCH] fix(pretty_gcode.sh): use main instead of master (fixes #203) - pgc uses main instead of master. so checking for origin/master leads to an error Signed-off-by: Dominik Willner th33xitus@gmail.com --- scripts/pretty_gcode.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/pretty_gcode.sh b/scripts/pretty_gcode.sh index f5e74ca..23822c1 100644 --- a/scripts/pretty_gcode.sh +++ b/scripts/pretty_gcode.sh @@ -104,7 +104,7 @@ function get_remote_prettygcode_commit() { [[ ! -d ${PGC_DIR} || ! -d "${PGC_DIR}/.git" ]] && return cd "${PGC_DIR}" && git fetch origin -q - commit=$(git describe origin/master --always --tags | cut -d "-" -f 1,2) + commit=$(git describe origin/main --always --tags | cut -d "-" -f 1,2) echo "${commit}" }