문제

I created a git repository using the below code in rugged..

require 'rugged'
$repopath='D:\Test12'
Rugged::Repository.init_at($repopath, true)
repo = Rugged::Repository.new($repopath)
puts repo.path

however, I didn't get any output when I execute the above code as ruby myfile.rb

도움이 되었습니까?

해결책 2

backslash didn't help.. downloaded 0.17.0.b7 and it worked.. was working on 0.16 earlier..

다른 팁

The backslash should be doubled: $repopath='D:\\Test12'

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top