Let's say the person running this has GitHub account under username and wants to do some mass PR and username/somerepo happens to be part of the list, the person will encounter some error like this:
Processing repository: username/somerepo
> Ensuring repository exists
> Ensuring fork exists (and creating if not)
> Working in /tmp/...
> git clone --depth 1 git@github.com:username/somerepo.git
> git checkout origin/branchname
error: pathspec 'origin/branchname' did not match any file(s) known to git
> git remote add upstream git@github.com:username/somerepo.git
> git fetch upstream
> git checkout upstream/master
> git checkout -b branchname
> git add some_file.txt
> git commit -m "Some commit"
On branch branchname
...
Exception: Command 'git commit -m "Some commit"' failed
Let's say the person running this has GitHub account under
username
and wants to do some mass PR andusername/somerepo
happens to be part of the list, the person will encounter some error like this:The return code is 1.