mirror of
https://github.com/google/nomulus.git
synced 2025-04-29 19:47:51 +02:00
Small fixes to show_upgrade_diffs (#1473)
* Small fixes to show_upgrade_diffs - fix fetch for an existing directory (we can't fetch to local "master" branch, use "origin/master" instead). - add a newline after "removed" entries.
This commit is contained in:
parent
ce65b69e2e
commit
143cea6dbe
1 changed files with 3 additions and 3 deletions
|
@ -138,8 +138,8 @@ def main():
|
|||
if args.directory and os.path.exists(dir):
|
||||
pr(f'Reusing directory {dir}\n')
|
||||
os.chdir(dir)
|
||||
run('git', 'fetch', 'git@github.com:google/nomulus', 'master:master')
|
||||
run('git', 'checkout', 'master')
|
||||
run('git', 'fetch', 'git@github.com:google/nomulus', 'master')
|
||||
run('git', 'checkout', 'origin/master')
|
||||
else:
|
||||
run('git', 'clone', 'git@github.com:google/nomulus', dir)
|
||||
os.chdir(dir)
|
||||
|
@ -175,7 +175,7 @@ def main():
|
|||
# Print the list of packages that were removed.
|
||||
for package in old_packages:
|
||||
if package not in new_packages:
|
||||
pr('removed ', b':'.join(package))
|
||||
pr('removed ', b':'.join(package), '\n')
|
||||
else:
|
||||
pr('Package versions not updated!\n')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue