thisismydesign / autowow

Set of commands to [auto]mate [w]ay [o]f [w]orking
MIT License
4 stars 0 forks source link

Updating projects fails if repo is not found #3

Closed thisismydesign closed 2 years ago

thisismydesign commented 6 years ago

Instead it should skip such repositories and show a warning message.

Eg.


nb:repos $ aw hi

Hang on, updating your local projects and remote forks...

Getting /Users/xy/repos/keras in shape...
Updating /Users/xy/repos/keras ...
Skipped: uncommitted changes on master.

Getting /Users/xy/repos/yz in shape...
Updating /Users/xy/repos/yz ...
[b14b34aa] Running git checkout master
[b14b34aa] Finished in 0.049 seconds with exit status 0 (successful)

[12e59462] Running git fetch upstream
[12e59462]  fatal: repository 'https://yz/' not found
[12e59462] Finished in 0.532 seconds with exit status 128 (failed)

[96e8fec3] Running git checkout improve-readme-testing
[96e8fec3] Finished in 0.050 seconds with exit status 0 (successful)

/Users/xy/.rbenv/versions/2.3.1/lib/ruby/gems/2.3.0/gems/tty-command-0.7.0/lib/tty/command.rb:105:in `run': Running `git fetch upstream` failed with (TTY::Command::ExitError)
  exit status: 128
  stdout: Nothing written
  stderr: fatal: repository 'https://yz' not found