Can't find the .git/config of a project subdir #41

Closed
opened 2019-07-15 16:42:07 +00:00 by dolanor · 2 comments

Being in a subdirectory of a current git project make the tea command fails, whereas, being at the same level as the .git directory, it would work.
I think tea should find it by itself.

$ pwd
/home/user/project/subdir
$ tea issues
2019/07/15 18:39:12 open .git/config: no such file or directory
$ cd ..
$ tea issues
#97	Tanguy Herrmann	2018-12-26 16:07:23	Use correct spell ID
Being in a subdirectory of a current git project make the tea command fails, whereas, being at the same level as the `.git` directory, it would work. I think tea should find it by itself. ``` $ pwd /home/user/project/subdir $ tea issues 2019/07/15 18:39:12 open .git/config: no such file or directory $ cd .. $ tea issues #97 Tanguy Herrmann 2018-12-26 16:07:23 Use correct spell ID ```
dolanor changed title from Can't find the .git/config of the current project to Can't find the .git/config of a project subdir 2019-07-15 16:45:02 +00:00
lunny added the
kind
enhancement
label 2019-07-16 01:23:17 +00:00
Member

This is also built into git itself if not easily available via go-git:

git rev-parse --show-toplevel

Will give you the top level of the project where the .git folder is.

This is also built into git itself if not easily available via go-git: ``` git rev-parse --show-toplevel ``` Will give you the top level of the project where the .git folder is.
Contributor

Created PR #45 to implement fix for git config detection.

Created PR https://gitea.com/gitea/tea/pulls/45 to implement fix for git config detection.
6543 added this to the v0.1.0 milestone 2019-10-27 15:01:04 +00:00
6543 closed this issue 2019-10-28 21:11:40 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: gitea/tea#41
No description provided.