瀏覽代碼

fixed remote add

master
Robin Thoni 8 年之前
父節點
當前提交
7615f6297f
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. 1
    1
      git-backup

+ 1
- 1
git-backup 查看文件

@@ -4,7 +4,7 @@ configFile=/etc/git-backup.conf
4 4
 
5 5
 initPath()
6 6
 {
7
-  cd "$1" && git init && git remote add git:backup/$(hostname)$(pwd)
7
+  cd "$1" && git init && git remote add origin git:backup/$(hostname)$(pwd)
8 8
 }
9 9
 
10 10
 if [ $# -eq 1 ] && [ "$1" = "--init" ]

Loading…
取消
儲存