kiss: don't pull if no remote. Closes #269

This commit is contained in:
Dylan Araps 2021-09-11 10:02:53 +03:00
parent 12646e4009
commit eed63b0d81
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

2
kiss
View File

@ -1587,7 +1587,7 @@ pkg_update() {
# Update each repository in '$KISS_PATH'.
for repo do
if ok "$(git -C "$repo" remote 2>/dev/null)"; then
if git -C "$repo" rev-parse 'HEAD@{upstream}' >/dev/null 2>&1; then
repo_type=git
# Get the Git repository root directory.