Git repositories in rb-gateway can now pull from an upstream remote.
Review Request #9347 — Created Nov. 4, 2017 and updated — Latest diff uploaded
A
Pullmethod was added torepository.goandgit_repository.go.
This method is intended to behave likegit-pullmeaning it starts with
agit-fetchand then agit-merge. Fetching is made rather
straightforward thanks to git2go. However, the merge section ofPull
required a few more steps. First, a merge analysis is performed, then the
merge and lastly a commit is created.
I setup a remote repository on github, cloned it on my machine, pushed
a few changes and pulled those changes into my local copy using only
RB-Gateway's Pull method.