Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add files with a separate add call in backport_pr #4141

Merged
merged 2 commits into from
Aug 29, 2013

Conversation

minrk
Copy link
Member

@minrk minrk commented Aug 29, 2013

git commit [filename] will fail if the filename is not already tracked.

/cc @ivanov

`git commit [filename]` will fail if the filename is not already tracked.

/cc @ivanov
commit = Popen(['git', 'commit', '-m', msg] + filenames)
add = Popen(['git', 'add'] + filenames)
add.wait()
if add.returncode:
Copy link
Member

Choose a reason for hiding this comment

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

I think we can use call(), which returns the return code, rather than creating a Popen and wait()ing on it.

Copy link
Member Author

Choose a reason for hiding this comment

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

yup, I am using check_call elsewhere in the function, and should be using it here as well. Just an artifact of copy/pasting the wrong block.

@takluyver
Copy link
Member

Great, merging.

takluyver added a commit that referenced this pull request Aug 29, 2013
add files with a separate `add` call in backport_pr
@takluyver takluyver merged commit af884b0 into ipython:master Aug 29, 2013
minrk added a commit that referenced this pull request Sep 4, 2013
`git commit [filename]` will fail if the filename is not already tracked.

/cc @ivanov
mattvonrocketstein pushed a commit to mattvonrocketstein/ipython that referenced this pull request Nov 3, 2014
add files with a separate `add` call in backport_pr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants