Commit Graph

11 Commits

Author SHA1 Message Date
David Hart 2ced7a7f33 Allow multiple returns from git_checkout (#1022)
* Allow multiple returns from git_checkout

* Remove multiple returns
2020-01-13 23:28:20 +01:00
ik1ne 84c16fb69a Change: rules_git_checkout handling branch names with slashes & Remote HEAD. (#944)
* Add: Test for branch names with slashes & Remote HEAD.

* - Add: Handling for removing remote HEAD.
- Change: Improved handling for branches with slash in their names.
2019-09-02 19:16:40 +02:00
Vladimir Iakovlev 5b3350b2dd #N/A: Fix tests with py.test 4 2018-11-21 19:43:01 +01:00
David Hart 83cf97dc26 Suggest git checkout -b (#754)
This fixes https://github.com/nvbn/thefuck/issues/632

This uses `script_parts` instead of `script.startswith`
to let it work even if there's extra spaces in the command, e.g.

    git  checkout unknown
2018-01-01 18:30:33 -05:00
Vladimir Iakovlev 4625d8503d #682: Unify work with output in classic and instant mode 2017-08-31 17:58:56 +02:00
Pablo Santiago Blum de Aguiar 3438d6dde7 #N/A Completely test rules.git_checkout 2016-01-31 19:55:44 -02:00
nvbn df4d2cc88d ⚠️ Remove `settings` param from rules `match`, `get_new_command` and `side_effect` 2015-09-07 13:00:29 +03:00
nvbn ab1cd665cd #N/A Fix `git_checkout` tests 2015-07-22 04:52:52 +03:00
nvbn 355505a0a8 #N/A Make `git_checkout` test less dependent on `get_closest` 2015-07-21 16:40:45 +03:00
nvbn 4f5659caad #87 Add ability to fix branch names in `git_checkout` rule 2015-07-20 19:25:29 +03:00
Pablo Santiago Blum de Aguiar 179839c32f test(rules): test other rules involving `shells.and_()`
Signed-off-by: Pablo Santiago Blum de Aguiar <scorphus@gmail.com>
2015-05-16 11:53:01 -03:00