We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8dd3d11 commit 812e975Copy full SHA for 812e975
pipcl.py
@@ -2108,7 +2108,7 @@ def git_get(
2108
branch = next(args)
2109
tag = None
2110
elif arg == '--tag':
2111
- tag == next(args)
+ tag = next(args)
2112
branch = None
2113
else:
2114
remote = arg
@@ -2123,7 +2123,7 @@ def do_update():
2123
# This seems to pull in the entire repository.
2124
log0(f'do_update(): attempting to update {local=}.')
2125
# Remove any local changes.
2126
- run(f'cd {local} && git checkout .', env_extra=env_extra)
+ run(f'cd {local} && git reset --hard', env_extra=env_extra)
2127
if tag:
2128
# `-u` avoids `fatal: Refusing to fetch into current branch`.
2129
# Using '+' and `revs/tags/` prefix seems to avoid errors like:
0 commit comments