El 17/1/2008, a las 8:11, Mitch Tishmack escribió:
I was going to post this earlier, but wanted to search the archives
first. Here are the commands assuming you don't want to or can't
partition a drive and format as ufs (I don't care for HFS+ much). I
can't believe I didn't find the command in the git list archives, so
voilà:
$ hdiutil create -size 300m -fs UFS foo.dmg
...............................................................................
created: /Users/mitch/foo.dmg
$ hdiutil attach foo.dmg
/dev/disk2 GUID_partition_scheme
/dev/disk2s1 Apple_UFS /Volumes/untitled
$ cd /Volumes/untitled && git clone git://git.kernel.org/pub/scm/git/
git.git
... snipped ...
$ cd git && git status
# On branch master
nothing to commit (working directory clean)
After git clone in HFS+ land...
$ git status
# On branch master
# Untracked files:
# (use "git add <file>..." to include in what will be committed)
#
# gitweb/test/Märchen
nothing added to commit but untracked files present (use "git add"
to track)
Should I just add this to the wiki?
Definitely.
Then we can all go back to ignoring the insane filesystems.
While it's a nice workaround, it really is just that (a workaround)
because performance will be suboptimal in a repository running on a
disk image (and many of switched to Git because of its speed).
Cheers,
Wincent
-
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html