forked from kiss-community/kiss
kiss: don't pull if no remote. Closes #269
This commit is contained in:
parent
12646e4009
commit
eed63b0d81
2
kiss
2
kiss
@ -1587,7 +1587,7 @@ pkg_update() {
|
|||||||
|
|
||||||
# Update each repository in '$KISS_PATH'.
|
# Update each repository in '$KISS_PATH'.
|
||||||
for repo do
|
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
|
repo_type=git
|
||||||
|
|
||||||
# Get the Git repository root directory.
|
# Get the Git repository root directory.
|
||||||
|
Loading…
Reference in New Issue
Block a user