As I started out working through the ways that I could wrangle git into working over ZeroNet, I ran across this "Zite" (still not 100% sold on the nomenclature) which came packaged with a shell script designed to help git interact with 0net. While it doesn't appear to be doing anything malicious, it also isn't very easy for humans to parse. To date, I haven't had to deal much with
git-remote-helpers outside of the normal indirect uses (
git-remote-ftp, etc.). The installation instructions given on the above-referenced Zite told me to simply add the script to my
$PATH. As any good citizen of the open-source community, my first mission was to understand what exactly I would be adding. It was time to do some research.
I spent two hours going over each line of the shell script trying to determine how it worked. When I was done, I had a few takeaways and a path forward:
The script takes the following commands as arguments in a switch-case statement:
The shebang and author lines listed both a Felipe Contreras and a modifier or Peter Cai
Finally, I came to the totally personal opinion that this particular shell script would be better served in a language which could more expressively describe its intent
- Python, node.js, or Java implementation to follow - self-imposed deadline of 9/9/17
We know that you have many choices when considering hard drive space and we'd like to thank you for choosing to peer
braindump. Don't be a stranger. Leave a comment, share this post, or leave a like if you're enjoying what you read.