Close

gitty!

A project log for commonCode (not exclusively for AVRs)

A shit-ton of things that are useful for a shit-ton of projects. (and, Think 'apt-get' for reusable project-code)

eric-hertzEric Hertz 06/19/2015 at 13:481 Comment

Been working on a script to upload commonThings... It still needs some work, but there's an initial set of results at: https://github.com/esot-eric-test?tab=repositories

I think it could work...

There's a funky-factor which isn't *really* common enough to think about, right now... but apparently some characters in filenames are not acceptable in git repository names (especially: '+'). And it doesn't tell me so, it just replaces the '+' with a '-' and acts like everything's peachy. Wee!

Another rabbit-hole, I suppose.

These uploads aren't exactly "ready for the public", but they're there. These are extracted/uploaded from https://github.com/ericwazhung/meh-heartbeat. So, I guess, when I get around to the download-aspect of the system, it should be a matter of something like downloading the heartbeat-project's makefile into a bare directory, running something like 'make getdependencies' then 'make run'...? There'll probably be a few more steps/files, a project-skeleton of sorts. I dunno. It'll be interesting.

Discussions

Eric Hertz wrote 06/26/2015 at 13:51 point

http://www.johnloomis.org/altera/nios2/gnutools/binutils/binutils/binutils.html

... is a very VERY roundabout way of discovering this little tidbit, which might explain my '+' -> '-' issue:

"MS-DOS does not allow + characters in file names"

...could it be that GitHub is attempting to maintain MS-DOS compatibility?! Or, at least, that somehow this DOS-related quirk might've worked its way down system-by-system until eventually getting into 'git'?

I still have yet to see any mention of the use of "+" in a repository-name explicitly anywhere... And, I did do a little bit of searching... There's even a page on specific no-go characters including such things as "/" (obviously) and, as I recall: "@@"... but no mention of "+" and no indication of the repository's creation failing nor being otherwise tweaked except when comparing the GitHub API's "JSON"(?) response parameter for "name" with that which it was sent. WEIRD. And, frankly, Not Cool.

How many other oddities like this am I gonna run into? I like using "_" is THAT OK?

And, do I need to worry about the GitHub API getting in the way of my goal to make this system as long-term reliable/future-compatible as possible...? (As it stands, it's only for my initial uploading, so maybe it doesn't matter... but what about git itself? Is its interface going to remain backwards-compatible?).

  Are you sure? yes | no