bustub icon indicating copy to clipboard operation
bustub copied to clipboard

Git clone --depth leads to unsuccess git push using url

Open BowenXiao1999 opened this issue 5 years ago • 4 comments

The README tells that clone this repo using --depth, however, after doing this, it will not be able to push into new repo using --mirror.

https://stackoverflow.com/questions/28983842/remote-rejected-shallow-update-not-allowed-after-changing-git-remote-url

Maybe it's a specific problem on url push, but it happens on my computer that the git push receives messages like "shallow update not allowed", just like the so link. I have solved it but it can be more helpful for other students if fixed.

BowenXiao1999 avatar Oct 08 '20 14:10 BowenXiao1999

Thank you! I was puzzled by the problem before seeing your issue.

Huust avatar Jan 20 '21 14:01 Huust

Thanks so much. I have addressed this problem using your given solution.

Songrui625 avatar Jan 29 '21 08:01 Songrui625

So there are two solutions for this.

  1. Clone the repository without --depth option.
  2. after cloning with git clone --depth, just move files into the private repo directory (but you cannot track the upstream repo anymore as the commit history is different)

tizee avatar Apr 21 '21 03:04 tizee

Same issues. And I am a bit confused why use git clone --depth in README. And I just use the webpage in github to import the code from other url.

prncoprs avatar Aug 17 '21 07:08 prncoprs

Seems already fixed. Thanks for reporting.

skyzh avatar Aug 25 '22 00:08 skyzh