- Apr 14, 2018
-
-
Stan Hu authored
-
Stan Hu authored
This is called repeatedly when viewing a merge request, and this should improve performance significantly by avoiding shelling out to git every time. This should help https://gitlab.com/gitlab-com/infrastructure/issues/4027.
-
- Apr 12, 2018
-
-
Rubén Dávila authored
-
- Apr 11, 2018
-
-
Zeger-Jan van de Weg authored
Clients can now request the attributes from `$GIT_DIR/info/attributes` through Gitaly. The Gitaly migration is described in gitlab-org/gitaly#1082. The parser algorithm was implemented in a way it could handle both file contents or a File handle, and both were already tested. Other than that, using the boy scout rule, I've removed a class, InfoAttributes, as it was delegating everything to the parser and therefor wasn't really needed in my opinion.
-
- Apr 06, 2018
-
-
Douglas Barbosa Alexandre authored
-
Douglas Barbosa Alexandre authored
-
Stan Hu authored
git 2.16 will fail badly if there are stale worktrees. Closes #44115
-
James Ramsay authored
Repository archives are always named `<project>-<ref>-<sha>` even if the ref is a commit. A consequence of always including the sha even for tags is that packaging a release is more difficult because both the ref and sha must be known by the packager. - add `<project>/-/archive/<ref>/<filename>.<format>` route using the `-` separator to prevent namespace collisions. If the filename is `<project>-<ref>` or the ref is a sha, the sha will be omitted, otherwise the default filename will be used. - deprecate previous archive route `repository/<ref>/archive`
-
- Apr 04, 2018
-
-
James Ramsay authored
Repository archives are always named `<project>-<ref>-<sha>` even if the ref is a commit. A consequence of always including the sha even for tags is that packaging a release is more difficult because both the ref and sha must be known by the packager. - add append_sha option (defaults true) to provide a method for toggling this feature. Support added to GitLab Workhorse by gitlab-org/gitlab-workhorse!232
-
- Apr 03, 2018
-
-
Douglas Barbosa Alexandre authored
-
Ahmad Sherif authored
Closes gitaly#1110
-
- Mar 30, 2018
-
-
Stan Hu authored
Any submodule lines that had a CR-LF ending would be ignored by the parser. Closes gitlab-org/gitlab-ce#2262
-
Jacob Vosmaer (GitLab) authored
-
- Mar 27, 2018
-
-
Douwe Maan authored
-
- Mar 23, 2018
-
-
Sean McGivern authored
When we added caching, this meant that calling `can_be_resolved_in_ui?` didn't always call `lines`, which meant that we didn't get the benefit of the side-effect from that, where it forced the conflict data itself to UTF-8. To fix that, make this explicit by separating the `raw_content` (any encoding) from the `content` (which is either UTF-8, or an exception is raised).
-
- Mar 14, 2018
-
-
Zeger-Jan van de Weg authored
Prior to this change, this method was called add_namespace, which broke the CRUD convention and made it harder to grep for what I was looking for. Given the change was a find and replace kind of fix, this was changed without opening an issue and on another feature branch. If more dynamic calls are made to add_namespace, these could've been missed which might lead to incorrect bahaviour. However, going through the commit log it seems thats not the case.
-
- Mar 12, 2018
-
-
Nick Thomas authored
-
- Mar 06, 2018
-
-
Takuya Noguchi authored
-
Stan Hu authored
By default, --prune is added to the command-line of a `git fetch` operation, but for repositories with many references this can take a long time to run. We shouldn't need to run --prune the first time we fetch a new repository.
-
- Mar 05, 2018
-
-
Alejandro Rodríguez authored
-
- Mar 02, 2018
-
-
Alejandro Rodríguez authored
-
Ahmad Sherif authored
-
- Mar 01, 2018
-
-
Ahmad Sherif authored
Closes gitaly#1046
-
Zeger-Jan van de Weg authored
Part of the migration as tracked in: gitlab-org/gitaly#1026
-
Tiago Botelho authored
-
Zeger-Jan van de Weg authored
A field didn't call the needed encoding helper, thus some UTF-8 encoding couldn't be encoded to ASCII. Using the helper method this was fixed. Tests are now run against Gitaly and Rugged too, to ensure both remain working correctly. Fixes gitlab-org/gitaly#1032, gitlab-org/gitlab-ce#43278
-
- Feb 26, 2018
-
-
Sean McGivern authored
These are obscuring the real error, which is confusing for everyone.
-
- Feb 21, 2018
-
-
Zeger-Jan van de Weg authored
Adds a test where a branch name is also a valid commit id. Git, the binary should create an error message which is difficult to parse and leading to errors later, as seen in: gitlab-org/gitlab-ce#43222 To catch these cases in the future, gitlab-test@1942eed5cc108b19c7405106e81fa96125d0be22 was created. Which a branch name matching the commit
-
- Feb 20, 2018
-
-
Ken authored
26039 - add merge request id 26039 change due to lingust source file updates
-
Zeger-Jan van de Weg authored
-
- Feb 19, 2018
-
-
Sean McGivern authored
We need to ignore the names for renamed files when configuring with sparse checkout.
-
Stan Hu authored
When the applied diff contains UTF-8 or some other encoded data, the diff returned back from the git process may be in ASCII-8BIT format. Writing this data to stdin may fail if the data because stdin expects this data to be in UTF-8. By switching the output to binmode, we ensure that the diff will always be written as-is. Closes gitlab-org/gitlab-ee#4960
-
- Feb 07, 2018
-
-
Ahmad Sherif authored
Closes gitaly#985
-
Francisco Javier López authored
-
Zeger-Jan van de Weg authored
The refs hash is used to determine what branches and tags have a commit as head in the network graph. The previous implementation depended on Rugged#references. The problem with this implementation was that it depended on rugged, but also that it iterated over all references and thus loading more data than needed if for example the project uses CI/CD environments, Pipelines, or Merge Requests. Given only refs are checked the network cares about the GraphHelper#refs method has no need to reject those, simplifying the method. Closes gitlab-org/gitaly#880
-
- Feb 06, 2018
-
-
James Edwards-Jones authored
Uses Lfs::FileModificationHandler to coordinate LFS detection, creation of LfsObject, etc Caveats: 1. This isn't used by the multi-file editor / Web IDE 2. This isn't used on rename. We'd need to be able to download LFS files and add them to the commit if they no longer match so not as simple. 3. We only check the root .gitattributes file, so this should be improved to correctly check for nested .gitattributes files in subfolders.
-
- Feb 05, 2018
-
-
Francisco Javier López authored
-
- Feb 02, 2018
-
-
Alejandro Rodríguez authored
-
Ahmad Sherif authored
Gitlab::Git::Repository#find_branch has a similar logic. Fixes #42609
-
Alejandro Rodríguez authored
We stop relying on Gitlab::Git::Env for the RevList class, and use Gitlab::Git::Repository#run_git methods inteaad. The refactor also fixes another issue, since we now top using "path_to_repo" (which is a Repository model method).
-