Andreas Wachter
e530b8b3df
updated archiver ( #175 )
2023-10-03 15:53:43 +02:00
Andreas Wachter
082821bfb9
added force push ( #172 )
2023-09-29 17:10:06 +02:00
Andreas Wachter
4fac8115ff
Error on second push ( #166 )
...
* there is an error on second push if the repo has only one branch
* fixed fetch error message
2023-08-17 08:06:10 +02:00
Andreas Wachter
f8ad43bb29
Multiple branches ( #165 )
...
* added github mirror functionality
* create temporary directory to clone into
* added onedev as destination
* added sourcehut
* add new examples
* added push of all branches, autocreation of repos on sourcehut
* push everything
* sourcehut visibility fix
2023-08-16 14:04:59 +02:00
Andreas Wachter
f468f48ba1
mirror functions ( #164 )
...
* added github mirror functionality
* create temporary directory to clone into
* added onedev as destination
* added sourcehut
* add new examples
2023-08-15 18:13:21 +02:00
Andreas Wachter
beae85c182
implemented git lfs ( #160 )
...
* implemented git lfs
* removed arm/v6 from docker builds
* add lfs to example
2023-07-18 10:56:43 +02:00
Andreas Wachter
3d125133ef
implement filters for github ( #137 )
...
* implement filters for github
* add filter to exclude archived repositories
* add filter for gitea/forgejo
* gogs filter option
* fix error log
* include gitlab filters
* fix logging
* parse duration
* filters for onedev and sourcehut
* adapted conf.example.yml
2023-02-20 16:05:01 +01:00
Andreas Wachter
f61574bf9c
improved prometheus metrics ( #134 )
...
* improved prometheus metrics
* change RepoTime to gauge
* fix gitea, only set metrics if ran
2023-02-10 06:07:11 +01:00
Andreas Wachter
12d496dba7
added option to clone the repository as bare ( #131 )
2023-01-11 11:00:48 +01:00
Andreas Wachter
6ddf340744
added possibility to add date to path ( #130 )
...
* added possibility to add date to path
* adds zip functionality
* added keep parameter
* cleanup
* keep parameter creates files with the timestamp in repo name directory
* fixed clone with keep without structured=true
* remove search
2023-01-08 20:22:07 +01:00
Andreas Wachter
81136acfbe
should fix #112
2022-09-24 18:14:07 +02:00
Tom Moulard
646b792ac1
chore: add linting ( #101 )
...
* chore: adding makefile
* chore: adding lint
* chore: update package name
* lint: run with fix
* chore: update main.go
* chore: update main_test.go
* chore: update types.go
* chore: update logger.go
* chore: update types_test.go
* chore: update prometheus.go
* chore: update local.go
* chore: update gitlab.go
* chore: update gogs.go
* chore: update bitbucket.go
* chore: update gitea.go
* chore: update github.go
* chore: update main*.go
* chore: go mod tidy
* chore: update action to have a correct working-directory
2022-03-20 11:25:11 +01:00
Andreas Wachter
2a069398ad
removed git ls-remote
from local
2022-03-02 22:28:58 +01:00
Andreas Wachter
bee477bf65
addresses #92 . ls-remote before pulling or cloning ( #93 )
2022-02-24 13:00:17 +01:00
Andreas Wachter
8ec9f04715
add repo to warn-message for local clone #79
2021-12-30 19:24:46 +01:00
Colin Dean
32b1541297
Extract methods for local repo clone and update
...
It was a little difficult to understand what was going where, esp. with
Go's verbose logging, so I extracted methods where appropriate. This
should also ease some testing concerns down the road.
2021-12-22 00:00:06 -05:00
Andreas Wachter
93b7c8fad6
added structured checkout mode ( #44 )
...
* added structured checkout mode
* path understand now ~
2021-12-16 17:22:44 +01:00
Andreas Wachter
5a434573a8
switched from panic to fatal
2021-12-13 08:39:38 +01:00
Andreas Wachter
5015f4fb73
switched cvs functions to modules
2021-12-12 19:23:55 +01:00