FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
python/git-export.sh at trunk · python-emscripten/python · GitHub
python-emscripten
python
Repository navigation
Code
Issues
1
(1)
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
python
/
git-export.sh
Copy path
More file actions
More file actions
Latest commit
History
History
History
executable file
·
26 lines (20 loc) · 685 Bytes
Breadcrumbs
python
/
git-export.sh
Copy path
File metadata and controls
executable file
·
26 lines (20 loc) · 685 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!
/bin/bash -e
#
Export Fossil repository so it can be pushed to GitLab/GitHub
#
Copyright (C) 2019 Sylvain Beucler
#
Copying and distribution of this file, with or without modification,
#
are permitted in any medium without royalty provided the copyright
#
notice and this notice are preserved. This file is offered as-is,
#
without any warranty.
FOSSIL_CHECKOUT=
$(
dirname
$(
readlink -f
$0
)
)
#
Populate authors list if needed
(
cd
$FOSSIL_CHECKOUT
/
if
!
fossil user capabilities Beuc
>
/dev/null
;
then
fossil user new Beuc beuc@beuc.net
'
'
fi
)
#
Convert commits
(cd
$FOSSIL_CHECKOUT
/
&&
fossil
export
--git) \
|
git fast-import
git reset HEAD
.
git checkout
.
Back
|
FazBrowse Home
|
New Git URL