Skip to content

"pull" command fails late when uncomitted changes in workspace #43

Description

@obbardc

We should check whether any uncommitted changes are present in the workspace before running the git fetch command.

$ pdk pull components

http://pdk.64studio.net/channels/debian/testing//etc/schema
|============================================================|
http://pdk.64studio.net/channels/debian/testing//etc/cache/blob_list.gz
|============================================================|
pdk INFO: Building channel index...
pdk INFO: Finished building channel index.
From http://pdk.64studio.net/channels/debian/testing//etc/git
 * [new branch]      master     -> components
pdk ERROR: Invalid input: Cannot merge with uncommitted changes in the workspace.

Activity

  1. added this to the 1.0 milestone on Jun 16, 2018
  2. self-assigned this
    on Jun 16, 2018
  3. obbardc commented on Jun 17, 2018

    @obbardc
    MemberAuthor

    This command should exit with code 0 if there are unstaged commits.

    git diff-index --quiet HEAD -- || echo "unstaged commits!"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions