【发布时间】:2016-05-06 05:47:31
【问题描述】:
我在 Xcode 中创建了一个机器人,用于在我的项目中进行持续集成。
我添加了一个触发器以在集成之前运行,我正在尝试执行“git lfs pull”,以便它将大文件拉入 Xcode 用于执行构建的临时目录中。
什么是让“git lfs pull”工作以使集成成功的方法?
目前我无法让它成功下载大文件。我的脚本如下所示:
#!/bin/bash
changeToRepo() {
cd ${XCS_SOURCE_DIR}/My-Project-Name
}
changeToRepo
/usr/local/bin/git-lfs pull
但是,未下载大文件,当我检查触发器脚本的日志时,我看到以下输出。
Git LFS:(1 个文件中的 0 个)0 B / 139.13 MB
Git LFS:(1 个文件中的 0 个)0 B / 139.13 MB
无法签出文件 git-lfs/1.1.0 (GitHub; darwin amd64; go 1.5.1; git 258acf1) git 版本 2.5.4 (Apple Git-61)$ git-lfs pull 无法检出文件
无法写入工作目录文件:打开媒体文件时出错。 goroutine 66 [运行]: github.com/github/git-lfs/lfs.Stack(0x0, 0x0, 0x0) /Users/rick/go/src/github.com/github/git-lfs/lfs/errors.go:557 +0x80 github.com/github/git-lfs/commands.logPanicToWriter(0x89a1e8, 0xc82002e018, 0x896028, 0xc82000e480) /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:184 +0xf7f github.com/github/git-lfs/commands.logPanic(0x896028, 0xc82000e480, 0x0, 0x0) /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:148 +0x421 github.com/github/git-lfs/commands.handlePanic(0x896028, 0xc82000e480, 0x0, 0x0) /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:123 +0x4e github.com/github/git-lfs/commands.LoggedError(0x896028, 0xc82000e480, 0x548060, 0x17, 0x0, 0x0, 0x0) /Users/rick/go/src/github.com/github/git-lfs/commands/commands.go:73 +0x82 github.com/github/git-lfs/commands.checkoutWithChan(0xc82012c4e0) /Users/rick/go/src/github.com/github/git-lfs/commands/command_checkout.go:202 +0x860 github.com/github/git-lfs/commands.checkoutFromFetchChan.func1(0xc82012c4e0, 0xc82018e040) /Users/rick/go/src/github.com/github/git-lfs/commands/command_checkout.go:78 +0x21 由 github.com/github/git-lfs/commands.checkoutFromFetchChan 创建 /Users/rick/go/src/github.com/github/git-lfs/commands/command_checkout.go:80 +0x439
【问题讨论】: