Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-02Don't require start branch to exist if we're just creating a new branchDouwe Maan
2017-03-01Fix variable name and change copyDouwe Maan
2017-03-01Fix creating a file in an empty repo using the APIDouwe Maan
2017-01-26Try to check if branch diverged explicitlyLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_21627134
2017-01-26Make GitHooksService#execute return block valueLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_21627207
2017-01-06Rename from base to start because base could mean merge baseLin Jen-Shin
2017-01-06Rename source to base to avoid confusion from MRLin Jen-Shin
2017-01-04Remove tag with git hooksLin Jen-Shin
2017-01-04Introduce Repository#with_repo_branch_commitLin Jen-Shin
We merge repository checks inside it so we don't have to check it on the call site, and we could also load the commit for the caller. This greatly reduce code duplication. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_20572919
2017-01-04Indent the way rubocop likesLin Jen-Shin
2017-01-04Update the comment:Lin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_20876648
2017-01-04Add a comment to explain why newrev should be updatedLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_20301332
2016-12-13Use ArgumentError error instead because it's a bugLin Jen-Shin
if it happens. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19747933
2016-12-13Use branch_exists? to check branchesLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19747922
2016-12-13Unify parameters and callback after hooksLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19747856
2016-12-13Use a regular class for GitOperationServiceLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19747793
2016-12-09Pass source_commit so that we save a few lookupsLin Jen-Shin
2016-12-08Introduce Repository#with_tmp_ref which we needLin Jen-Shin
commits from the other repository. We'll cleanup the tmp ref after we're done with our business.
2016-12-08source_branch -> source_branch_nameLin Jen-Shin
2016-12-08Cleanup parameters, easier to understand andLin Jen-Shin
more consistent across different methodst
2016-12-07Commit outside the hooks if possible:Lin Jen-Shin
So we still commit outside the hooks, and only update ref inside the hooks. There are only two exceptions: * Whenever it's adding a tag. We can't add a tag without committing, unfortunately. See !7700 * Whenever source project is in another repository. We'll need to fetch ref otherwise commits can't be made. See the whole discussion starting from: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19210942
2016-12-07Pass source_branch properly for cherry-pick/revertLin Jen-Shin
Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237/diffs#note_19210818
2016-12-06Re-enable tests for update_branch_with_hooks andLin Jen-Shin
Add back check if we're losing commits in a merge.
2016-12-05Introduce GitOperationService and wrap everyLin Jen-Shin
git operation inside GitHooksService. Feedback: https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/7237#note_19210942 TODO: Fix tests for update_branch_with_hooks