Skip to content

Commit

Permalink
Fix scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
sapegin committed Feb 8, 2016
1 parent ba41570 commit c85f02d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions bin/git-fork
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@

# Usage:
# git-fork <original-author>
#
#

local user=$1
user=$1
if [[ "$user" == "" ]]; then
echo "Usage: git-fork <original-author>"
else
local repo=`basename "$(pwd)"`
repo=`basename "$(pwd)"`
git remote add upstream "git@github.com:$user/$repo.git"
fi
6 changes: 3 additions & 3 deletions bin/git-upstream
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
#!/usr/bin/env bash

# Sync branch with upstream
#
#
# Usage:
# git-upstream [branch]
#
#

local branch=${1-master}
branch=${1-master}
git fetch upstream
git checkout $branch
git rebase upstream/$branch

0 comments on commit c85f02d

Please sign in to comment.