Permalink
Browse files

Fix git-incoming and git-outgoing when /bin/sh = dash not bash (e.g. …

…Debian)
  • Loading branch information...
1 parent c50743a commit 7322a6419d4a363598ba54f9f3dd4590dcde2730 @davejamesmiller davejamesmiller committed Oct 19, 2011
Showing with 2 additions and 2 deletions.
  1. +1 −1 git-incoming
  2. +1 −1 git-outgoing
View
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
CURRENT_BRANCH=$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "$(git branch | grep '^*' |sed s/\*\ //)"; fi)
View
@@ -1,4 +1,4 @@
-#!/bin/sh
+#!/bin/bash
CURRENT_BRANCH=$(git branch &>/dev/null; if [ $? -eq 0 ]; then echo "$(git branch | grep '^*' |sed s/\*\ //)"; fi)

0 comments on commit 7322a64

Please sign in to comment.