Closed guoh27 closed 1 year ago
With GITCACHE_LOGLEVEL=Debug
2023-11-01 14:46:42 Starting Initial clone of https://github.com/seeraven/gitcache.git into /root/.gitcache/mirrors/github.com/seeraven/gitcache.
2023-11-01 14:46:42 Retry to execute command '/gitcache/git clone --progress --mirror https://github.com/seeraven/gitcache.git /root/.gitcache/mirrors/github.com/seeraven/gitcache/git' up to 3 times.
2023-11-01 14:46:42 Execute command '/gitcache/git clone --progress --mirror https://github.com/seeraven/gitcache.git /root/.gitcache/mirrors/github.com/seeraven/gitcache/git' (shell=False, cwd=None) with command timeout of 3600 seconds and output timeout of 300 seconds.
2023-11-01 14:46:42 handle_git_command(['/gitcache/git'], ['clone', '--progress', '--mirror', 'https://github.com/seeraven/gitcache.git', '/root/.gitcache/mirrors/github.com/seeraven/gitcache/git']) started
2023-11-01 14:46:42 Found global options [], command 'clone', command options '['--progress', '--mirror']' and arguments ['https://github.com/seeraven/gitcache.git', '/root/.gitcache/mirrors/github.com/seeraven/gitcache/git'].
2023-11-01 14:46:42 Loading configuration file /root/.gitcache/config.
2023-11-01 14:46:42 Loading configuration file /root/.gitcache/config.
2023-11-01 14:46:42 Can't load configuration file /root/.gitcache/mirrors/github.com/seeraven/gitcache/gitcache.config as it does not exist!
I found this because:
ln -s /gitcache/gitcache /gitcache/git
exported PATH=/gitcache:$PATH
git clone https://github.com/seeraven/gitcache.git
It won present if I use absolute path of gitcache.
Ok. I know why now.
I use sed 's|#!/usr/bin/env python3|#!/usr/bin/python3|' -i /gitcache/git
which will make it not a link anymore
I export PATH with gitcache, and I run git clone https://github.com/seeraven/gitcache.git
It output as below: