#6648·kubesphere

devOps: 持续部署命令运行时出现git拉取失败的问题,但是GIT可以拉取成功

Author: LemcodenCreated Jul 6, 2026Updated Jul 6, 2026
Labelskind/bug

以下是我在base的容器里面执行的命令, 版本v4.2.0-20251118

git clone http://192.168.2.51:26100/standard/basic_platform/gateway Cloning into 'gateway'... Username for 'http://192.168.2.51:26100': xxxxx Password for 'http://[email protected]:26100': warning: redirecting to http://192.168.2.51:26100/standard/basic_platform/gateway.git/ remote: Enumerating objects: 77, done. remote: Counting objects: 100% (77/77), done. remote: Compressing objects: 100% (62/62), done. remote: Total 80 (delta 13), reused 0 (delta 0), pack-reused 3 Receiving objects: 100% (80/80), 24.08 KiB | 3.01 MiB/s, done. Resolving deltas: 100% (13/13), done.

ks app update --app-name backend-gateway
--app-namespace witpark-test764c5
--name 192.168.3.109/witpark/gateway
--newName 192.168.3.109/witpark/gateway
--newTag latest
--git-password $PASS --git-username=$USER
--git-target-branch dev> > > > > > Usage: ks app update [flags] Aliases update, up Flags: --app-name string The name of the application --app-namespace string The namespace of the application -d, --digest string Digest is the value used to replace the original image tag. If digest is present NewTag value is ignored --git-email string The email of the git provider --git-password string The password of the git provider --git-provider string The flag --mode=pr need the git provider, the mode will fallback to commit if the git provider is empty --git-target-branch string The target branch name that you want to push --git-username string The username of the git provider -h, --help help for update -n, --name string Name is a tag-less image name --newName string NewName is the value used to replace the original name -t, --newTag string NewTag is the value used to replace the original tag --secret-name string The username of the git provider --secret-namespace string The username of the git provider Global Flags: --context string Sets a context entry in kubeconfig failed to clone git repository 'http://192.168.2.51:26100/standard/basic_platform/gateway.git', error is: failed to clone git repository 'http://192.168.2.51:26100/standard/basic_platform/gateway.git' into '/tmp/43968745', error: reference not found