Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gitea acces token #555

Open
Jacknq opened this issue Nov 12, 2022 · 2 comments
Open

gitea acces token #555

Jacknq opened this issue Nov 12, 2022 · 2 comments

Comments

@Jacknq
Copy link

Jacknq commented Nov 12, 2022

Hi,
i folowed the steps for gitea - manual download and running the config file.
However when I try to access its authentication fails. (using bin/git-as-svn -c doc\htmlsingle\examples/config-gitea.yml)
I gues it has something to do with token, how do you exactly get it? so I can authenticate through svn
e.g.

# Gitea access token
   # Note that git-as-svn requires Gitea Sudo permission in order to authenticate users
   token: 90c68b84fb04e364c2ea3fc42a6a2193144bc07d

regards

@Jacknq
Copy link
Author

Jacknq commented Nov 12, 2022

Found it
https://docs.gitea.io/en-us/api-usage/
please add it to your manual!

@Jacknq Jacknq closed this as completed Nov 12, 2022
@Jacknq
Copy link
Author

Jacknq commented Nov 12, 2022

Generated token via gitea UI, pasted in that config-gitea.yml
set env USER =jack user=jack
in container
but cant commit since:

Try to push commit in branch: jack/test@master
2022-11-12T21:09:12,825  INFO [git] [SvnServer-thread-4] (GitPushEmbedded.kt:115) - pre-receive hook for repository Repository[/data/git/repositories/jack/test.git] took 258ms
2022-11-12T21:09:12,826  WARN [svn] [SvnServer-thread-4] (SvnServer.kt:136) - Command execution error: svn: E165001: Hook /data/git/repositories/jack/test.git/hooks/pre-receive failed with output:
2022/11/12 21:09:12 ...s/setting/setting.go:1035:loadFromConf() [F] Expect user 'jack' but current user is: root

@Jacknq Jacknq reopened this Nov 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant