Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
auto_git_info
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maxence Ferrari
auto_git_info
Commits
19dde591
Commit
19dde591
authored
1 year ago
by
ferrari
Browse files
Options
Downloads
Patches
Plain Diff
fix defaults path issue
parent
32b72639
No related branches found
No related tags found
No related merge requests found
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
setup.py
+1
-1
1 addition, 1 deletion
setup.py
src/__init__.py
+1
-1
1 addition, 1 deletion
src/__init__.py
src/auto_git_info.py
+2
-2
2 additions, 2 deletions
src/auto_git_info.py
with
4 additions
and
4 deletions
setup.py
+
1
−
1
View file @
19dde591
from
setuptools
import
setup
,
find_packages
setup
(
name
=
'
auto_git_info
'
,
version
=
'
1.1.
0
'
,
version
=
'
1.1.
1
'
,
description
=
'
Automatically log your command line arguments and commit sha
'
,
author
=
'
Maxence Ferrari
'
,
py_modules
=
[
'
auto_git_info
'
],
...
...
This diff is collapsed.
Click to expand it.
src/__init__.py
+
1
−
1
View file @
19dde591
__version__
=
"
1.1.
0
"
__version__
=
"
1.1.
1
"
This diff is collapsed.
Click to expand it.
src/auto_git_info.py
+
2
−
2
View file @
19dde591
...
...
@@ -26,8 +26,8 @@ def log_info(args, *, path=None, **kwargs):
if
'
/
'
in
path
:
os
.
makedirs
(
path
.
rsplit
(
'
/
'
,
1
)[
0
],
exist_ok
=
True
)
else
:
if
not
os
.
path
.
isdir
(
'
../
run_log
'
):
os
.
makedirs
(
'
../
run_log
'
)
if
not
os
.
path
.
isdir
(
'
run_log
'
):
os
.
makedirs
(
'
run_log
'
)
path
=
'
run_log/
'
+
time
+
'
.json
'
with
open
(
path
,
'
w
'
)
as
logfile
:
repo
=
git
.
Repo
(
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__main__
.
__file__
)),
search_parent_directories
=
True
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment