Skip to content

Commit

Permalink
compatibility with git-hydra and old macos bash
Browse files Browse the repository at this point in the history
  • Loading branch information
Joe Mou committed Apr 23, 2019
1 parent 060ac76 commit fe4229d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion init
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
#!/bin/bash -e

mkdir -p "$1/.zit/objects"
mkdir -p "$1/.zit/refs/heads"
echo 'ref: refs/heads/master' > "$1/.zit/HEAD"

# for git compatibility
ln -s .zit "$1/.git"
mkdir "$1/.git/info"
mkdir -p "$1/.git/info"
echo .zit > "$1/.git/info/exclude"
2 changes: 1 addition & 1 deletion test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/bin/bash -ex

header() {
echo -e "\n\e[32m$@\e[0m"
echo -e "\n\033[32m$@\033[0m"
}

get_md5() {
Expand Down

0 comments on commit fe4229d

Please sign in to comment.