Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
obbardc opened this issue Jun 16, 2018 · 1 comment
Open

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

obbardc opened this issue Jun 16, 2018 · 1 comment
Assignees
Milestone

Comments

@obbardc
Copy link
Member

obbardc commented Jun 16, 2018

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.
@obbardc obbardc added this to the 1.0 milestone Jun 16, 2018
@obbardc obbardc self-assigned this Jun 16, 2018
@obbardc
Copy link
Member Author

obbardc commented Jun 17, 2018

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
Projects
None yet
Development

No branches or pull requests

1 participant