From 40fe604adc38095a65b2fd9168badb50daa65b14 Mon Sep 17 00:00:00 2001 From: mcarton Date: Fri, 26 Jun 2015 13:58:50 +0200 Subject: [PATCH] Replace use of '&&' by shells.and_ --- thefuck/rules/git_pull.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/thefuck/rules/git_pull.py b/thefuck/rules/git_pull.py index cee3461..98470b1 100644 --- a/thefuck/rules/git_pull.py +++ b/thefuck/rules/git_pull.py @@ -1,3 +1,6 @@ +from thefuck import shells + + def match(command, settings): return ('git' in command.script and 'pull' in command.script @@ -9,4 +12,4 @@ def get_new_command(command, settings): branch = line.split(' ')[-1] set_upstream = line.replace('', 'origin')\ .replace('', branch) - return u'{} && {}'.format(set_upstream, command.script) + return shells.and_(set_upstream, command.script)