Konstantin Schaper
62a7ebd4dd
user agents are not longer set to be browsers by default
2020-10-29 19:51:40 +01:00
Konstantin Schaper
8576b66559
Merge branch 'develop' into feature/create_gpg_signatures
...
# Conflicts:
# CHANGELOG.md
# scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitHookContextProvider.java
# scm-plugins/scm-git-plugin/src/main/java/sonia/scm/repository/spi/GitLogCommand.java
# scm-plugins/scm-git-plugin/src/main/java/sonia/scm/web/GitReceiveHook.java
2020-08-11 13:33:21 +02:00
Konstantin Schaper
30aa592d73
Merge branch 'develop' into feature/create_gpg_signatures
...
# Conflicts:
# CHANGELOG.md
# yarn.lock
2020-08-07 15:13:29 +02:00
René Pfeuffer
072d8f15c9
Detect merges where branch has been deleted, too
2020-08-06 07:58:22 +02:00
René Pfeuffer
6bfefb3348
Introduce merge detection for receive hooks
...
Here we add a merge detection provider for pre and post receive hooks
and implement this new provider for git.
2020-08-05 17:57:50 +02:00
Sebastian Sdorra
030ef30ffb
uses parent constructor with RootURL
2020-08-03 14:01:44 +02:00
Sebastian Sdorra
7cb349242c
introduces GitChangesetConverterFactory
...
This change introduces a GitChangesetConverterFactory to allow injections for the GitChangesetConverter.
2020-07-21 07:34:14 +02:00
René Pfeuffer
8bd17a03d7
Use better names
...
The name 'workdir' is now only used for a concrete directory, where a
clone can be created in. The new name 'working copy' is used for a
concrete instance of such a directory, where a clone has been created in
for a repository stored in SCM-Manager. Such a working copy can be
cached and reused for further changes.
2020-06-02 21:31:43 +02:00
Florian Scholdei
f1b34eb502
Changeover to MIT license ( #1066 )
...
* prepare license-maven-plugin for license migration
* added license mapping for tsx files and added some more excludes
* Changeover to MIT license
* Fix build problems
* Delete old remaining licenses
* Add more exclude path for license checker
* Rename included netbeans license, add exclude .m2/repository/
* Specify .m2 exclude because not only repository/, also wrapper/ must match
* Add .cache/ exclude for license check
* Modify formatting of license in java classes to comply with convention and IDE
* Add IntelliJ documentation for license configuration
* Update CHANGELOG.md
* Exclude tmp/workspace/ dir for license check
* Edit README.md
Co-authored-by: Sebastian Sdorra <sebastian.sdorra@cloudogu.com >
2020-03-23 15:35:58 +01:00
Sebastian Sdorra
24de6c89a5
update jgit to version 5.6.1.202002131546-r-scm1
2020-02-24 16:27:42 +01:00
Sebastian Sdorra
52f471b5dd
fix lfs authentication via ssh command and enabled xsrf protection
2019-10-22 10:50:49 +02:00
Sebastian Sdorra
e885d130be
add push permissions to read access token
...
This is required because the read access token is used to obtain the write access token.
2019-10-22 10:13:46 +02:00
Rene Pfeuffer
5185a68eeb
Formatter is not thread safe
2019-10-21 13:10:48 +02:00
Rene Pfeuffer
36d2723c50
Add unit test
2019-10-21 11:11:44 +02:00
Rene Pfeuffer
287ee9efe1
Simplify stream
2019-10-21 10:40:16 +02:00
Rene Pfeuffer
647464618a
Fix time format
2019-10-21 10:24:53 +02:00
Rene Pfeuffer
f9ecae129e
Add unit test
2019-10-19 15:55:07 +02:00
Rene Pfeuffer
9f6674cce4
Add permission checks
2019-10-19 13:54:27 +02:00
Rene Pfeuffer
2a998060f4
Cleanup
2019-10-19 13:50:49 +02:00
Rene Pfeuffer
c067ce1a5c
Extract token generation
2019-10-19 13:47:59 +02:00
Rene Pfeuffer
d43080a3ea
Extract common functionality
2019-10-19 13:24:58 +02:00
Rene Pfeuffer
a2c42060e5
POC
2019-10-18 16:17:22 +02:00
Rene Pfeuffer
162a1d9e05
POC
2019-10-18 13:33:53 +02:00
Rene Pfeuffer
6cdb81d263
POC
2019-10-18 10:22:45 +02:00
René Pfeuffer
7db3350439
Migrate git LFS blob directory
2019-07-01 14:17:32 +02:00
Sebastian Sdorra
ece1a2b34a
update jgit to v5.4.0.201906121030-r-scm1
2019-06-19 11:40:36 +02:00
René Pfeuffer
c39c14bbd1
Remove no longer needed LfsStoreRemoveListener
...
With v2 the LFS store resides inside the repository directory that is
purged completely on deletion. Therefore an explicit deletion of the
LFS folder is no longer necessary.
2019-06-06 13:31:40 +02:00
René Pfeuffer
ebb21ee308
Modify test to test base, not specific class
...
This was necessary after extracting base class.
2019-03-05 13:47:46 +01:00
René Pfeuffer
0c46d639da
Extract base class for ReceivePackFactory implementations
2019-03-05 13:29:57 +01:00
Sebastian Sdorra
8bf82213b8
remove unused imports
2019-01-30 14:48:37 +01:00
Sebastian Sdorra
b231499cd0
merge with branch 1.x
2019-01-29 09:42:03 +01:00
René Pfeuffer
b4081aaa99
Add endpoint to set default branch
2018-12-12 15:04:56 +01:00
René Pfeuffer
bc8c776821
Introduce config rest endpoint for default git branch
2018-12-12 14:12:55 +01:00
René Pfeuffer
33f3216164
Make type optional
2018-12-03 16:30:19 +01:00
René Pfeuffer
44d99f55f2
Do no longer expose StoreParameters
2018-12-03 12:28:35 +01:00
René Pfeuffer
3638d3520f
Use static method for new StoreParameters instance
2018-12-03 11:28:03 +01:00
Mohamed Karray
37f4a2b669
merge
2018-11-29 16:01:43 +01:00
Mohamed Karray
fb79cbfd02
merge + refactor getStoreDirectory
2018-11-28 15:14:49 +01:00
René Pfeuffer
d4db39755f
Harmonize repository resolution
2018-11-27 15:31:57 +01:00
Mohamed Karray
7a1de0f67b
add the interface StoreFactory and refactor storeFactories
2018-11-27 11:35:02 +01:00
René Pfeuffer
00ab764dab
Store repository id in native config file
...
Hooks can read this repository type dependant config file and handle
the changes for the correct repository id
2018-11-26 17:22:17 +01:00
René Pfeuffer
c8fc673ce0
Remove hooks for internal repository id
2018-11-23 16:12:35 +01:00
René Pfeuffer
e8558e07ec
Use repository dao to find repository for given directory in hooks
2018-11-23 10:13:47 +01:00
Mohamed Karray
39e5c19251
merge
2018-11-15 11:28:33 +01:00
Mohamed Karray
f8ae7cedf7
Refactor the repository store implementation in order to store repositories in specific paths.
2018-11-15 10:04:16 +01:00
René Pfeuffer
232e4fc072
Delete wrong throws JavaDoc declarations
2018-11-08 17:01:57 +01:00
René Pfeuffer
e2766d494a
Register SimpleGitWorkdirFactory in guice context
2018-11-07 10:38:01 +01:00
René Pfeuffer
2eb685c5d0
Delete EscapeUtil and dependencies
2018-09-19 10:47:26 +02:00
René Pfeuffer
88506b0633
Remove unnecessary annotations
2018-09-18 08:58:03 +02:00
René Pfeuffer
4d60ebd54e
Use constants for repository types
2018-09-14 10:31:16 +02:00