Method: Rugged::Repository#path

Defined in:
ext/rugged/rugged_repo.c

#pathObject

Return the full, normalized path to this repository. For non-bare repositories, this is the path of the actual .git folder, not the working directory.

repo.path #=> "/home/foo/workthing/.git"

1543
1544
1545
1546
1547
1548
1549
1550
1551
1552
# File 'ext/rugged/rugged_repo.c', line 1543

static VALUE rb_git_repo_path(VALUE self)
{
	git_repository *repo;
	const char *path;

	Data_Get_Struct(self, git_repository, repo);
	path = git_repository_path(repo);

	return path ? rb_str_new_utf8(path) : Qnil;
}