From fc4621724b699f7acadbcfbb5048ea1762b3e344 Mon Sep 17 00:00:00 2001 From: merakor Date: Mon, 31 Aug 2020 21:55:22 +0000 Subject: pkg_fetch(): remove unnecessary check for git Since the code block just below this will fail if git doesn't exist, there is no point in this check. FossilOrigin-Name: 8cb3ebb5a0b9e5a1c0d51e25ba924de79c7523abd97f0ac48cf89251e0dee4e0 --- src/cpt-lib | 6 ------ 1 file changed, 6 deletions(-) diff --git a/src/cpt-lib b/src/cpt-lib index a019dba..e9e3014 100644 --- a/src/cpt-lib +++ b/src/cpt-lib @@ -1501,12 +1501,6 @@ pkg_fetch() { if [ -d .git ]; then - command -v git >/dev/null || { - log "$repo" " " - printf '%s\n' "Git is not installed, skipping." - continue - } - [ "$(git remote 2>/dev/null)" ] || { log "$repo" " " printf '%s\n' "No remote, skipping." -- cgit v1.2.3