Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #13 from erjiang/master

Fixed looking for dirs with spaces
  • Loading branch information...
commit 2a341822d411768eb9e38f8ad4e76ab374612369 2 parents 721f01f + a7188c4
@sickill authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 git-dude
View
4 git-dude
@@ -41,8 +41,8 @@ function notify() {
while true; do
for dir_name in *; do
- if [[ -d $dir_name && $(cd $dir_name; git rev-parse --git-dir 2>/dev/null) ]]; then
- repo_name=$(basename $dir_name .git)
+ if [[ -d "$dir_name" && $(cd "$dir_name"; git rev-parse --git-dir 2>/dev/null) ]]; then
+ repo_name=$(basename "$dir_name" .git)
cd "$dir_name"
changes=$(git fetch 2>&1 | grep -F -- '->' | sed -E 's/^\s+\+\s+//')
Please sign in to comment.
Something went wrong with that request. Please try again.