Browse Source

Use -C for git

Serj Kalichev 8 years ago
parent
commit
0486b83c81
1 changed files with 2 additions and 6 deletions
  1. 2 6
      scripts/rfa

+ 2 - 6
scripts/rfa

@@ -43,12 +43,8 @@ create_repo_svn()
 
 create_repo_git()
 {
-	local saved_dir=""
-	saved_dir=`pwd`
-	mkdir "$1" || return 1
-	cd "$1"
-	git init --bare --shared >/dev/null || return 1
-	cd "$saved_dir"
+	mkdir -p "$1" || return 1
+	git -C "$1" init --bare --shared >/dev/null || return 1
 }
 
 data_add()