2
1
Fork
You've already forked gitflow-python
1

typo in merge exception handling #8

Closed
opened 2013年05月10日 18:49:25 +02:00 by ebridges · 1 comment
ebridges commented 2013年05月10日 18:49:25 +02:00 (Migrated from github.com)
Copy link

Thanks for a really useful product!

A script in which I'm using gitflow caused this error:

 File "/Users/ebridges/.virtualenvs/irs/lib/python2.7/site-packages/gitflow-0.5.1-py2.7.egg/gitflow/branches.py", line 269, in merge
 text = text + '\n' + e.stderr
UnboundLocalError: local variable 'text' referenced before assignment

This is due to two small spelling typos in branches.py

 except GitCommandError, e:
 txt = stdout.getvalue().rstrip()
 if e.stderr:
 text = text + '\n' + e.stderr
 raise MergeError(txt)

That line should be: txt = txt + '\n' + e.stderr.

Thanks for a really useful product! A script in which I'm using gitflow caused this error: ``` File "/Users/ebridges/.virtualenvs/irs/lib/python2.7/site-packages/gitflow-0.5.1-py2.7.egg/gitflow/branches.py", line 269, in merge text = text + '\n' + e.stderr UnboundLocalError: local variable 'text' referenced before assignment ``` This is due to two small spelling typos in [`branches.py`](https://github.com/htgoebel/gitflow/blob/develop/gitflow/branches.py#L269) ``` python except GitCommandError, e: txt = stdout.getvalue().rstrip() if e.stderr: text = text + '\n' + e.stderr raise MergeError(txt) ``` That line should be: `txt = txt + '\n' + e.stderr`.
htgoebel commented 2013年05月12日 17:10:02 +02:00 (Migrated from github.com)
Copy link

Fixed in e41537552b. Thanks for reporting.

Fixed in e41537552b. Thanks for reporting.
Sign in to join this conversation.
No Branch/Tag specified
develop
master
v0.5.1
v0.5
0.2.1
0.2
0.1
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
htgoebel/gitflow-python#8
Reference in a new issue
htgoebel/gitflow-python
No description provided.
Delete branch "%!s()"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?