Skip to content

Commit

Permalink
task gitup to sync fork with remote (update)
Browse files Browse the repository at this point in the history
  • Loading branch information
pce committed Jan 4, 2012
1 parent aabbeab commit 3de660b
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.php
Expand Up @@ -112,6 +112,15 @@ function target_default()
target_test(); target_test();
} }



// task to sync fork with remote (update)
function target_gitup()
{
// git remote add upstream git://github.com/<user>/<repo>.git
system('git fetch upstream');
system('git merge upstream/master');
}

// --------------------------------------------------------------------- // ---------------------------------------------------------------------
// build script // build script
// --------------------------------------------------------------------- // ---------------------------------------------------------------------
Expand Down

0 comments on commit 3de660b

Please sign in to comment.