Linux unitednationsplay.com 3.10.0-1160.45.1.el7.x86_64 #1 SMP Wed Oct 13 17:20:51 UTC 2021 x86_64
nginx/1.20.1
Server IP : 188.130.139.92 & Your IP : 216.73.216.44
Domains :
Cant Read [ /etc/named.conf ]
User : web
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
usr /
share /
doc /
git-1.8.3.1 /
contrib /
mw-to-git /
t /
Delete
Unzip
Name
Size
Permission
Date
Action
install-wiki
[ DIR ]
drwxr-xr-x
2022-02-05 08:35
.gitignore
45
B
-rw-r--r--
2013-06-10 20:01
Makefile
698
B
-rw-r--r--
2013-06-10 20:01
README
3.69
KB
-rw-r--r--
2013-06-10 20:01
install-wiki.sh
926
B
-rw-r--r--
2013-06-10 20:01
push-pull-tests.sh
3.01
KB
-rw-r--r--
2013-06-10 20:01
t9360-mw-to-git-clone.sh
9.2
KB
-rw-r--r--
2013-06-10 20:01
t9361-mw-to-git-push-pull.sh
587
B
-rw-r--r--
2013-06-10 20:01
t9362-mw-to-git-utf8.sh
9.65
KB
-rw-r--r--
2013-06-10 20:01
t9363-mw-to-git-export-import.sh
6.07
KB
-rw-r--r--
2013-06-10 20:01
t9364-pull-by-rev.sh
305
B
-rw-r--r--
2013-06-10 20:01
test-gitmw-lib.sh
11.81
KB
-rw-r--r--
2013-06-10 20:01
test-gitmw.pl
5.85
KB
-rw-r--r--
2013-06-10 20:01
test.config
932
B
-rw-r--r--
2013-06-10 20:01
Save
Rename
test_push_pull () { test_expect_success 'Git pull works after adding a new wiki page' ' wiki_reset && git clone mediawiki::'"$WIKI_URL"' mw_dir_1 && wiki_editpage Foo "page created after the git clone" false && ( cd mw_dir_1 && git pull ) && wiki_getallpage ref_page_1 && test_diff_directories mw_dir_1 ref_page_1 ' test_expect_success 'Git pull works after editing a wiki page' ' wiki_reset && wiki_editpage Foo "page created before the git clone" false && git clone mediawiki::'"$WIKI_URL"' mw_dir_2 && wiki_editpage Foo "new line added on the wiki" true && ( cd mw_dir_2 && git pull ) && wiki_getallpage ref_page_2 && test_diff_directories mw_dir_2 ref_page_2 ' test_expect_success 'git pull works on conflict handled by auto-merge' ' wiki_reset && wiki_editpage Foo "1 init 3 5 " false && git clone mediawiki::'"$WIKI_URL"' mw_dir_3 && wiki_editpage Foo "1 init 2 content added on wiki after clone 3 5 " false && ( cd mw_dir_3 && echo "1 init 3 4 content added on git after clone 5 " >Foo.mw && git commit -am "conflicting change on foo" && git pull && git push ) ' test_expect_success 'Git push works after adding a file .mw' ' wiki_reset && git clone mediawiki::'"$WIKI_URL"' mw_dir_4 && wiki_getallpage ref_page_4 && ( cd mw_dir_4 && test_path_is_missing Foo.mw && touch Foo.mw && echo "hello world" >>Foo.mw && git add Foo.mw && git commit -m "Foo" && git push ) && wiki_getallpage ref_page_4 && test_diff_directories mw_dir_4 ref_page_4 ' test_expect_success 'Git push works after editing a file .mw' ' wiki_reset && wiki_editpage "Foo" "page created before the git clone" false && git clone mediawiki::'"$WIKI_URL"' mw_dir_5 && ( cd mw_dir_5 && echo "new line added in the file Foo.mw" >>Foo.mw && git commit -am "edit file Foo.mw" && git push ) && wiki_getallpage ref_page_5 && test_diff_directories mw_dir_5 ref_page_5 ' test_expect_failure 'Git push works after deleting a file' ' wiki_reset && wiki_editpage Foo "wiki page added before git clone" false && git clone mediawiki::'"$WIKI_URL"' mw_dir_6 && ( cd mw_dir_6 && git rm Foo.mw && git commit -am "page Foo.mw deleted" && git push ) && test_must_fail wiki_page_exist Foo ' test_expect_success 'Merge conflict expected and solving it' ' wiki_reset && git clone mediawiki::'"$WIKI_URL"' mw_dir_7 && wiki_editpage Foo "1 conflict 3 wiki 4" false && ( cd mw_dir_7 && echo "1 conflict 2 git 4" >Foo.mw && git add Foo.mw && git commit -m "conflict created" && test_must_fail git pull && "$PERL_PATH" -pi -e "s/[<=>].*//g" Foo.mw && git commit -am "merge conflict solved" && git push ) ' test_expect_failure 'git pull works after deleting a wiki page' ' wiki_reset && wiki_editpage Foo "wiki page added before the git clone" false && git clone mediawiki::'"$WIKI_URL"' mw_dir_8 && wiki_delete_page Foo && ( cd mw_dir_8 && git pull && test_path_is_missing Foo.mw ) ' }