Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
etersoft-build-utils
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
korinf
etersoft-build-utils
Commits
468fac7b
Commit
468fac7b
authored
Feb 06, 2010
by
Vitaly Lipatov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
git: fix get_root_git_dir for recursive search
parent
03a7cfd5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
4 deletions
+12
-4
git
share/eterbuild/functions/git
+6
-4
get_git_root.sh
tests/get_git_root.sh
+6
-0
No files found.
share/eterbuild/functions/git
View file @
468fac7b
...
...
@@ -22,12 +22,14 @@ get_current_branch()
get_root_git_dir
()
{
# FIXME
if
[
-d
../.git
]
;
then
readlink
-f
$(
pwd
)
/..
local
DIR
=
"
$1
"
[
-n
"
$DIR
"
]
||
DIR
=
$(
pwd
)
[
"
$DIR
"
=
"/"
]
&&
return
1
if
[
-d
"
$DIR
/.git"
]
;
then
readlink
-f
"
$DIR
"
return
fi
pwd
get_root_git_dir
$(
dirname
"
$DIR
"
)
||
return
1
}
get_remote_git_list
()
...
...
tests/get_git_root.sh
0 → 100755
View file @
468fac7b
#!/bin/sh
.
`
dirname
$0
`
/../share/eterbuild/functions/common
load_mod git
get_root_git_dir
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment