aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormerakor <cem@ckyln.com>2020-08-31 21:55:22 +0000
committermerakor <cem@ckyln.com>2020-08-31 21:55:22 +0000
commitfc4621724b699f7acadbcfbb5048ea1762b3e344 (patch)
treea348dfb1f251c7df7f4b92b6e66aa8c813fbdd41 /src
parent27f2ca4955327ec7dc387f3a92e1b3df17829d2d (diff)
downloadcpt-fc4621724b699f7acadbcfbb5048ea1762b3e344.tar.gz
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
Diffstat (limited to 'src')
-rw-r--r--src/cpt-lib6
1 files changed, 0 insertions, 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."