Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
450 views
in Technique[技术] by (71.8m points)

shallow update not allowed

meiyou zhong wen shurufa

Android REPO was cloned from others,only one commits(depth =1),I'm going to push this to my git server,I changed the remote url,and when git push origin,error came out,

Delta compression using up to 2 threads.
压缩对象中: 100% (4376/4376), 完成.
写入对象中: 100% (12043/12043), 332.66 MiB | 1.12 MiB/s, 完成.
Total 12043 (delta 6482), reused 12043 (delta 6482)
To ssh://git.xxx.org/Android/customer/android/platform/cts
 ! [remote rejected] repo_branch -> repo_branch (shallow update not allowed)
error: 无法推送一些引用到 'ssh://git.xxx.org/Android/customer/android/platform/cts'

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

不允许浅更新,加上 --unshallow


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...