ocssw repo servers don't support --depth?

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
7yl4r
Posts: 27
Joined: Tue Jul 18, 2017 10:07 am America/New_York
Answers: 0

ocssw repo servers don't support --depth?

by 7yl4r » Thu Nov 30, 2017 2:50 pm America/New_York

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:

Filters:

OB.DAACx - SeanBailey
Posts: 1519
Joined: Wed Sep 18, 2019 6:15 pm America/New_York
Answers: 1
Been thanked: 9 times

ocssw repo servers don't support --depth?

by OB.DAACx - SeanBailey » Fri Dec 01, 2017 8:39 am America/New_York

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:
   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

7yl4r
Posts: 27
Joined: Tue Jul 18, 2017 10:07 am America/New_York
Answers: 0

ocssw repo servers don't support --depth?

by 7yl4r » Wed Dec 06, 2017 1:52 pm America/New_York

Thanks for satisfying my curiosity with the extra info. I might try this out next time one of my drives fills up.

Post Reply