Mentions légales du service
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
python-sharelatex
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
Releases
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
sed-rennes
sharelatex
python-sharelatex
Merge requests
!32
pulling gitignored file musn't delete them
Code
Review changes
Check out branch
Download
Patches
Plain diff
Merged
pulling gitignored file musn't delete them
dev/fix-33
into
main
Overview
2
Commits
2
Pipelines
6
Changes
2
Merged
SIMONIN Matthieu
requested to merge
dev/fix-33
into
main
2 years ago
Overview
2
Commits
2
Pipelines
6
Changes
2
Expand
0
0
Merge request reports
Compare
main
version 5
dc8876d9
2 years ago
version 4
3bc2058b
2 years ago
version 3
7ebcb294
2 years ago
version 2
7822db74
2 years ago
version 1
b573b473
2 years ago
main (base)
and
latest version
latest version
99bb08c5
2 commits,
2 years ago
version 5
dc8876d9
2 commits,
2 years ago
version 4
3bc2058b
2 commits,
2 years ago
version 3
7ebcb294
2 commits,
2 years ago
version 2
7822db74
2 commits,
2 years ago
version 1
b573b473
1 commit,
2 years ago
2 files
+
46
−
17
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
Files
2
Search (e.g. *.vue) (Ctrl+P)
sharelatex/tests/test_cli.py
+
22
−
0
Options
@@ -323,6 +323,28 @@ class TestCli(unittest.TestCase):
_test_clone_and_pull_remote_folder_deletion
(
path
=
"
./test_dir
"
)
@new_project
(
branch
=
"
main
"
)
def
test_clone_and_pull_addgitignore
(
self
,
project
=
None
):
path
=
Path
(
project
.
fs_path
)
gitignore
=
path
/
"
.gitignore
"
pdf
=
path
/
"
main.pdf
"
# ignoring pdf files
check_call
(
f
"
echo
'
*.pdf
'
>
{
gitignore
}
"
,
shell
=
True
)
# create a dummy pdf file
check_call
(
f
"
echo
'
this is an ignored pdf
'
>
{
pdf
}
"
,
shell
=
True
)
# committing (only .gitingore)
project
.
repo
.
git
.
add
(
"
.gitignore
"
)
project
.
repo
.
index
.
commit
(
"
test
"
)
# we're clean, pulling
check_call
(
"
git slatex pull -vvv
"
,
shell
=
True
)
self
.
assertTrue
(
gitignore
.
exists
(),
"
gitignore was committed and mustn
'
t be deleted
"
)
self
.
assertTrue
(
pdf
.
exists
(),
"
gitignored file mustn
'
t be deleted
"
)
def
test_clone_malformed_project_URL
(
self
):
"""
try clone with malformed project URL
"""
with
self
.
assertRaises
(
Exception
)
as
_
:
Loading