Skip to content

Commit

Permalink
Revert "Fixed problem with local and remote tracking branches"
Browse files Browse the repository at this point in the history
This reverts commit 6470615.
  • Loading branch information
msiemens committed Mar 23, 2014
1 parent 9287476 commit 6f43edd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions PyGitUp/gitup.py
Original file line number Diff line number Diff line change
Expand Up @@ -283,11 +283,9 @@ def fetch(self):
else:
fetch_args.append(self.remotes)

if fetch_args == ['.']:
if fetch_args[-1] == ['.']:
# Only local target branches, `git fetch --multiple` will fail
return
elif '.' in fetch_args[-1]:
fetch_args[-1].remove('.')

try:
self.git.fetch(tostdout=True, *fetch_args, **fetch_kwargs)
Expand Down

1 comment on commit 6f43edd

@msiemens
Copy link
Owner Author

Choose a reason for hiding this comment

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

It seems like this commit didn't fix anything but rather broke my tests :/

Please sign in to comment.