Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

DOC: warn about --force for dirty repos#370

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
stsievert wants to merge1 commit intodrdoctr:master
base:master
Choose a base branch
Loading
fromstsievert:patch-1

Conversation

@stsievert
Copy link

What does this PR implement?
It warns about runningdoctr deploy with the--force flag and dirty files.

I made the mistake of doing this, and this warning would have prevented my mistake. I am submitting this PR to ask a question: how do I recover those dirty files untracked by Git? Or are they gone forever?

@asmeurer
Copy link
Member

doctr deploy --force should basically never be used. It forces doctr to run locally, whereas it normally only runs in Travis. It's only useful for development. We should probably hide the flag.

doctr deploy stashes your dirty changes. It should unstash them, but maybe that failed. You can try runninggit stash pop manually.

@stsievert
Copy link
Author

doctr deploy stashes your dirty changes. It should unstash them, but maybe that failed. You can try running git stash pop manually.

Luckily I've been able to recover.git stash didn't have my changes, but (very luckily) I've aliasedrm to move files macOS's "Trash" directory.

parser.error("doctr does not appear to be running on Travis. Use "
"doctr deploy <target-dir> --force to run anyway.")
"doctr deploy <target-dir> --force to run anyway.\n\n"
"WARNING: this will remove any dirty files"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

How about just not mentioning--force at all and also hiding it from the --help output.

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

Reviewers

@asmeurerasmeurerasmeurer left review comments

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@stsievert@asmeurer

[8]ページ先頭

©2009-2025 Movatter.jp