Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
Platform-independent core collection
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
18
Issues
18
List
Board
Labels
Milestones
Merge Requests
5
Merge Requests
5
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Platform-independent core collection
Commits
47861ac6
Commit
47861ac6
authored
Jan 10, 2019
by
Dimitris Lampridis
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
tools/sdb_desc_gen.tcl: try to figure out remote url when remote name is not "origin"
parent
d26be4fe
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
sdb_desc_gen.tcl
tools/sdb_desc_gen.tcl
+11
-2
No files found.
tools/sdb_desc_gen.tcl
View file @
47861ac6
...
...
@@ -120,8 +120,17 @@ if { [catch { set inf_user [exec git config --get user.name] }] } {
if {
[
catch
{
set inf_commit_id
[
exec
git log -1 --format=%H
]
}]
} {
set inf_commit_id "
unknown commit
"
}
if {
[
catch
{
set inf_repo_url
[
exec
git config --get remote.origin.url
]
}]
} {
set inf_repo_url "
unknown url
"
if {
[
catch
{
set branch_name
[
exec
git rev-parse --abbrev-ref HEAD
]
}]
} {
set branch_name "
unknown branch
"
}
if {
[
catch
{
set remote_name
[
exec
git config --get branch.$branch_name.remote
]
}]
} {
set remote_name "
unknown remote
"
}
if {
[
catch
{
set inf_repo_url
[
exec
git config --get remote.$remote_name.url
]
}]
} {
set inf_repo_url "
unknown url
(
possibly built from a local commit/branch
)
"
}
if {
[
catch
{
set dirty_repo
[
exec
git describe --all --dirty | grep -c dirty
]
}]
} {
set dirty_repo "
0
"
...
...
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