I'm cloning the ocssw repos from https://oceandata.sci.gsfc.nasa.gov/ocssw and figured I would use `--depth 1` to save a little bandwidth, but got back the following error:
```
fatal: dumb http transport does not support --depth
```
Not a big deal, but I wouldn't mind saving the space on my machines. Could this be fixed with an update to the repo host?
...or maybe I should be using the bundles anyway - I admit I don't really understand the purpose of git bundles even after reading the docs and so have just ignored that piece of advice. :grin:
ocssw repo servers don't support --depth?
-
- Posts: 1519
- Joined: Wed Sep 18, 2019 6:15 pm America/New_York
- Been thanked: 9 times
ocssw repo servers don't support --depth?
No, the repository configuration will not be changed ...at least not anytime soon.
The bundles exist because we're using git for something git wasn't really intended for - binary file distribution.
We discovered early on - but after we committed to using git - that checkouts from remote hosts very often
would fail, so the solution was to generate bundles - which allowed a single download the didn't use the git
protocol.
If you want to save a little space (and you have a fairly recent version of git), you can download the bundle then clone them ala:
where <repo-name> is the bundle you're cloning and <version> is the SeaDAS version you're interested in (e.g.
...or modify the install_ocssw.py script to add the "--depth 1 --single-branch" options to the clone call, then use the --local option to the installer (after having pulled down the bundles
Sean
The bundles exist because we're using git for something git wasn't really intended for - binary file distribution.
We discovered early on - but after we committed to using git - that checkouts from remote hosts very often
would fail, so the solution was to generate bundles - which allowed a single download the didn't use the git
protocol.
If you want to save a little space (and you have a fairly recent version of git), you can download the bundle then clone them ala:
git clone --depth 1 --single-branch --branch <version> <repo-name>.bundle
git remote set-url origin https://oceandata.sci.gsfc.nasa.gov/ocssw/<repo-name>.git
git pull
where <repo-name> is the bundle you're cloning and <version> is the SeaDAS version you're interested in (e.g.
v7.4
)...or modify the install_ocssw.py script to add the "--depth 1 --single-branch" options to the clone call, then use the --local option to the installer (after having pulled down the bundles
Sean
ocssw repo servers don't support --depth?
Thanks for satisfying my curiosity with the extra info. I might try this out next time one of my drives fills up.