Commit dc2d37ff0f5247d359b12eb9de90f2bd5e14117e

Authored by Shrikant Sharat
1 parent 164249dff9

It appears git changed its outputs a little bit.

The line `Checking connectivity... done` has been added to git's output. We need
to find a more reliable way to test these that doesn't break with git's output
changes.

Showing 11 changed files with 20 additions and 0 deletions Inline Diff

tests/branch-bundle.t
1 Branch b1. 1 Branch b1.
2 2
3 $ pg branch b1 3 $ pg branch b1
4 $ pg checkout b1 4 $ pg checkout b1
5 Switched to branch 'b1' 5 Switched to branch 'b1'
6 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 6 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
7 > alias hehe='echo hehe from b1' 7 > alias hehe='echo hehe from b1'
8 > EOF 8 > EOF
9 $ pg commit -am 'Change for b1' 9 $ pg commit -am 'Change for b1'
10 \[b1 [a-f0-9]{7}\] Change for b1 (re) 10 \[b1 [a-f0-9]{7}\] Change for b1 (re)
11 1 file changed, 1 insertion(+), 1 deletion(-) 11 1 file changed, 1 insertion(+), 1 deletion(-)
12 12
13 Go back to master. 13 Go back to master.
14 14
15 $ pg checkout master 15 $ pg checkout master
16 Switched to branch 'master' 16 Switched to branch 'master'
17 17
18 Load plugin from b1. 18 Load plugin from b1.
19 19
20 $ antigen-bundle $PLUGIN_DIR --branch=b1 20 $ antigen-bundle $PLUGIN_DIR --branch=b1
21 Cloning into '.+?'\.\.\. (re) 21 Cloning into '.+?'\.\.\. (re)
22 done. 22 done.
23 Checking connectivity... done
23 Switched to a new branch 'b1' 24 Switched to a new branch 'b1'
24 Branch b1 set up to track remote branch b1 from origin. 25 Branch b1 set up to track remote branch b1 from origin.
25 $ hehe 26 $ hehe
26 hehe from b1 27 hehe from b1
27 28
28 Does not say 'Already on b1' on each session startup. 29 Does not say 'Already on b1' on each session startup.
29 30
30 $ antigen-bundle $PLUGIN_DIR --branch=b1 31 $ antigen-bundle $PLUGIN_DIR --branch=b1
31 32
32 Load plugin from master. 33 Load plugin from master.
33 34
34 $ antigen-bundle $PLUGIN_DIR 35 $ antigen-bundle $PLUGIN_DIR
35 Cloning into '.+?'\.\.\. (re) 36 Cloning into '.+?'\.\.\. (re)
36 done. 37 done.
38 Checking connectivity... done
37 $ hehe 39 $ hehe
38 hehe 40 hehe
39 41
1 Load plugin from master. 1 Load plugin from master.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR
4 Cloning into '*'... (glob) 4 Cloning into '*'... (glob)
5 done. 5 done.
6 Checking connectivity... done
6 $ hehe 7 $ hehe
7 hehe 8 hehe
8 9
9 Load the plugin again. Just to see nothing happens. 10 Load the plugin again. Just to see nothing happens.
10 11
11 $ antigen-bundle $PLUGIN_DIR 12 $ antigen-bundle $PLUGIN_DIR
12 $ hehe 13 $ hehe
13 hehe 14 hehe
14 15
15 Confirm there is still only one repository. 16 Confirm there is still only one repository.
16 17
17 $ ls $ADOTDIR/repos | wc -l 18 $ ls $ADOTDIR/repos | wc -l
18 1 19 1
19 20
20 Load a prezto style module. Should only source the `init.zsh` present in the 21 Load a prezto style module. Should only source the `init.zsh` present in the
21 module. 22 module.
22 23
23 $ antigen-bundle $PLUGIN_DIR2 24 $ antigen-bundle $PLUGIN_DIR2
24 Cloning into '*'... (glob) 25 Cloning into '*'... (glob)
25 done. 26 done.
27 Checking connectivity... done
26 $ hehe2 28 $ hehe2
27 hehe2 29 hehe2
28 30
29 The alias defined in the other zsh file should not be available. 31 The alias defined in the other zsh file should not be available.
30 32
31 $ unsourced-alias 33 $ unsourced-alias
32 zsh: command not found: unsourced-alias 34 zsh: command not found: unsourced-alias
33 [127] 35 [127]
34 36
1 Add multiple bundles. 1 Add multiple bundles.
2 2
3 $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles 3 $ echo "$PLUGIN_DIR\n$PLUGIN_DIR2" | antigen-bundles
4 Cloning into '.+?'\.\.\. (re) 4 Cloning into '.+?'\.\.\. (re)
5 done. 5 done.
6 Checking connectivity... done
6 Cloning into '.+?'\.\.\. (re) 7 Cloning into '.+?'\.\.\. (re)
7 done. 8 done.
9 Checking connectivity... done
8 10
9 Check if they are both applied. 11 Check if they are both applied.
10 12
11 $ hehe 13 $ hehe
12 hehe 14 hehe
13 $ hehe2 15 $ hehe2
14 hehe2 16 hehe2
15 17
16 Clean it all up. 18 Clean it all up.
17 19
18 $ export _ANTIGEN_BUNDLE_RECORD="" 20 $ export _ANTIGEN_BUNDLE_RECORD=""
19 $ antigen-cleanup --force &> /dev/null 21 $ antigen-cleanup --force &> /dev/null
20 22
21 Specify with indentation. 23 Specify with indentation.
22 24
23 $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles 25 $ echo " $PLUGIN_DIR\n $PLUGIN_DIR2" | antigen-bundles
24 Cloning into '.+?'\.\.\. (re) 26 Cloning into '.+?'\.\.\. (re)
25 done. 27 done.
28 Checking connectivity... done
26 Cloning into '.+?'\.\.\. (re) 29 Cloning into '.+?'\.\.\. (re)
27 done. 30 done.
31 Checking connectivity... done
28 32
29 Again, check if they are both applied. 33 Again, check if they are both applied.
30 34
31 $ hehe 35 $ hehe
32 hehe 36 hehe
33 $ hehe2 37 $ hehe2
34 hehe2 38 hehe2
35 39
1 Firstly, no plugins, nothing to cleanup. 1 Firstly, no plugins, nothing to cleanup.
2 2
3 $ antigen-cleanup --force 3 $ antigen-cleanup --force
4 You don't have any bundles. 4 You don't have any bundles.
5 5
6 Load the plugins. 6 Load the plugins.
7 7
8 $ antigen-bundle $PLUGIN_DIR 8 $ antigen-bundle $PLUGIN_DIR
9 Cloning into '*'... (glob) 9 Cloning into '*'... (glob)
10 done. 10 done.
11 Checking connectivity... done
11 $ antigen-bundle $PLUGIN_DIR2 12 $ antigen-bundle $PLUGIN_DIR2
12 Cloning into '*'... (glob) 13 Cloning into '*'... (glob)
13 done. 14 done.
15 Checking connectivity... done
14 16
15 Check the listing. 17 Check the listing.
16 18
17 $ antigen-list 19 $ antigen-list
18 */test-plugin / plugin true (glob) 20 */test-plugin / plugin true (glob)
19 */test-plugin2 / plugin true (glob) 21 */test-plugin2 / plugin true (glob)
20 22
21 Nothing should be available for cleanup. 23 Nothing should be available for cleanup.
22 24
23 $ antigen-cleanup --force 25 $ antigen-cleanup --force
24 You don't have any unidentified bundles. 26 You don't have any unidentified bundles.
25 27
26 Clear out the bundles record. 28 Clear out the bundles record.
27 29
28 $ _ANTIGEN_BUNDLE_RECORD="" 30 $ _ANTIGEN_BUNDLE_RECORD=""
29 31
30 Check the listing, after clearing the record. 32 Check the listing, after clearing the record.
31 33
32 $ antigen-list 34 $ antigen-list
33 You don't have any bundles. 35 You don't have any bundles.
34 [1] 36 [1]
35 37
36 Confirm the plugin directory exists. 38 Confirm the plugin directory exists.
37 39
38 $ ls dot-antigen/repos | wc -l 40 $ ls dot-antigen/repos | wc -l
39 2 41 2
40 42
41 Do the cleanup. 43 Do the cleanup.
42 44
43 $ antigen-cleanup --force 45 $ antigen-cleanup --force
44 You have clones for the following repos, but are not used. 46 You have clones for the following repos, but are not used.
45 */test-plugin (glob) 47 */test-plugin (glob)
46 */test-plugin2 (glob) 48 */test-plugin2 (glob)
47 49
48 50
49 Deleting clone for */test-plugin... done. (glob) 51 Deleting clone for */test-plugin... done. (glob)
50 Deleting clone for */test-plugin2... done. (glob) 52 Deleting clone for */test-plugin2... done. (glob)
51 53
52 Check the listing, after cleanup. 54 Check the listing, after cleanup.
53 55
54 $ antigen-list 56 $ antigen-list
55 You don't have any bundles. 57 You don't have any bundles.
56 [1] 58 [1]
57 59
58 Confirm the plugin directory does not exist after cleanup. 60 Confirm the plugin directory does not exist after cleanup.
59 61
60 $ ls dot-antigen/repos | wc -l 62 $ ls dot-antigen/repos | wc -l
61 0 63 0
62 64
1 Empty initial listing. 1 Empty initial listing.
2 2
3 $ antigen-list 3 $ antigen-list
4 You don't have any bundles. 4 You don't have any bundles.
5 [1] 5 [1]
6 6
7 Add a bundle. 7 Add a bundle.
8 8
9 $ antigen-bundle $PLUGIN_DIR 9 $ antigen-bundle $PLUGIN_DIR
10 Cloning into '.+?'\.\.\. (re) 10 Cloning into '.+?'\.\.\. (re)
11 done. 11 done.
12 Checking connectivity... done
12 $ antigen-list 13 $ antigen-list
13 */test-plugin / plugin true (glob) 14 */test-plugin / plugin true (glob)
14 15
15 Add same bundle and check uniqueness. 16 Add same bundle and check uniqueness.
16 17
17 $ antigen-bundle $PLUGIN_DIR 18 $ antigen-bundle $PLUGIN_DIR
18 $ antigen-list 19 $ antigen-list
19 */test-plugin / plugin true (glob) 20 */test-plugin / plugin true (glob)
20 21
21 Add another bundle. 22 Add another bundle.
22 23
23 $ antigen-bundle $PLUGIN_DIR2 24 $ antigen-bundle $PLUGIN_DIR2
24 Cloning into '.+?'\.\.\. (re) 25 Cloning into '.+?'\.\.\. (re)
25 done. 26 done.
27 Checking connectivity... done
26 $ antigen-list 28 $ antigen-list
27 */test-plugin / plugin true (glob) 29 */test-plugin / plugin true (glob)
28 */test-plugin2 / plugin true (glob) 30 */test-plugin2 / plugin true (glob)
29 31
tests/no_local_clone.t
1 Load the plugin with no local clone. 1 Load the plugin with no local clone.
2 2
3 $ antigen-bundle $PLUGIN_DIR --no-local-clone 3 $ antigen-bundle $PLUGIN_DIR --no-local-clone
4 4
5 Check if the plugin is loaded correctly. 5 Check if the plugin is loaded correctly.
6 6
7 $ hehe 7 $ hehe
8 hehe 8 hehe
9 9
10 Confirm no clone is made. 10 Confirm no clone is made.
11 11
12 $ test -d dot-antigen 12 $ test -d dot-antigen
13 [1] 13 [1]
14 14
15 Load the plugin with a clone. 15 Load the plugin with a clone.
16 16
17 $ antigen-bundle $PLUGIN_DIR 17 $ antigen-bundle $PLUGIN_DIR
18 Cloning into '*'... (glob) 18 Cloning into '*'... (glob)
19 done. 19 done.
20 Checking connectivity... done
20 21
21 Empty the record. 22 Empty the record.
22 23
23 $ _ANTIGEN_BUNDLE_RECORD= 24 $ _ANTIGEN_BUNDLE_RECORD=
24 25
25 Load the plugin again with no local clone. 26 Load the plugin again with no local clone.
26 27
27 $ antigen-bundle $PLUGIN_DIR --no-local-clone 28 $ antigen-bundle $PLUGIN_DIR --no-local-clone
28 29
29 The cleanup should list the bundle's clone. 30 The cleanup should list the bundle's clone.
30 31
31 $ antigen-cleanup --force 32 $ antigen-cleanup --force
32 You have clones for the following repos, but are not used. 33 You have clones for the following repos, but are not used.
33 */test-plugin (glob) 34 */test-plugin (glob)
34 35
35 36
36 Deleting clone for */test-plugin... done. (glob) 37 Deleting clone for */test-plugin... done. (glob)
37 38
tests/revert-update.t
1 Load and test plugin. 1 Load and test plugin.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR
4 Cloning into '.+?'\.\.\. (re) 4 Cloning into '.+?'\.\.\. (re)
5 done. 5 done.
6 Checking connectivity... done
6 $ hehe 7 $ hehe
7 hehe 8 hehe
8 9
9 Save the current HEAD of the plugin. 10 Save the current HEAD of the plugin.
10 11
11 $ old_version="$(pg rev-parse HEAD)" 12 $ old_version="$(pg rev-parse HEAD)"
12 13
13 Modify the plugin. 14 Modify the plugin.
14 15
15 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 16 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
16 > alias hehe='echo hehe, updated' 17 > alias hehe='echo hehe, updated'
17 > EOF 18 > EOF
18 $ pg commit -am 'Updated message' 19 $ pg commit -am 'Updated message'
19 \[master [a-f0-9]{7}\] Updated message (re) 20 \[master [a-f0-9]{7}\] Updated message (re)
20 1 file changed, 1 insertion(+), 1 deletion(-) 21 1 file changed, 1 insertion(+), 1 deletion(-)
21 22
22 Save the new HEAD of the plugin. 23 Save the new HEAD of the plugin.
23 24
24 $ new_version="$(pg rev-parse HEAD)" 25 $ new_version="$(pg rev-parse HEAD)"
25 26
26 Define a convenience function to get the current version. 27 Define a convenience function to get the current version.
27 28
28 $ current-version () {(cd dot-antigen/repos/* && git rev-parse HEAD)} 29 $ current-version () {(cd dot-antigen/repos/* && git rev-parse HEAD)}
29 30
30 Confirm we currently have the old version. 31 Confirm we currently have the old version.
31 32
32 $ [[ $(current-version) == $old_version ]] 33 $ [[ $(current-version) == $old_version ]]
33 34
34 Run antigen's update. 35 Run antigen's update.
35 36
36 $ antigen-update 37 $ antigen-update
37 **** Pulling */test-plugin (glob) 38 **** Pulling */test-plugin (glob)
38 From */test-plugin (glob) 39 From */test-plugin (glob)
39 ???????..??????? master -> origin/master (glob) 40 ???????..??????? master -> origin/master (glob)
40 Updating ???????..??????? (glob) 41 Updating ???????..??????? (glob)
41 Fast-forward 42 Fast-forward
42 aliases.zsh |\s+2 \+- (re) 43 aliases.zsh |\s+2 \+- (re)
43 1 file changed, 1 insertion(+), 1 deletion(-) 44 1 file changed, 1 insertion(+), 1 deletion(-)
44 Updated from ??????? to ???????. (glob) 45 Updated from ??????? to ???????. (glob)
45 ??????? Updated message (glob) 46 ??????? Updated message (glob)
46 aliases.zsh |\s+2 +- (re) 47 aliases.zsh |\s+2 +- (re)
47 1 file changed, 1 insertion(+), 1 deletion(-) 48 1 file changed, 1 insertion(+), 1 deletion(-)
48 49
49 50
50 Confirm we have the new version. 51 Confirm we have the new version.
51 52
52 $ [[ $(current-version) == $new_version ]] 53 $ [[ $(current-version) == $new_version ]]
53 54
54 Run update again, with no changes in the origin repo. 55 Run update again, with no changes in the origin repo.
55 56
56 $ antigen-revert 57 $ antigen-revert
57 Reverted to state before running -update on *. (glob) 58 Reverted to state before running -update on *. (glob)
58 59
59 Confirm we have the old version again. 60 Confirm we have the old version again.
60 61
61 $ [[ $(current-version) == $old_version ]] 62 $ [[ $(current-version) == $old_version ]]
62 63
1 Set environment variables for this test case 1 Set environment variables for this test case
2 2
3 $ export TEST_DIR=$PWD 3 $ export TEST_DIR=$PWD
4 $ export TEST_HOST=$TEST_DIR/host 4 $ export TEST_HOST=$TEST_DIR/host
5 $ export TEST_NORMAL=$TEST_DIR/client 5 $ export TEST_NORMAL=$TEST_DIR/client
6 $ export TEST_SUBMODULE=$TEST_DIR/submodule 6 $ export TEST_SUBMODULE=$TEST_DIR/submodule
7 7
8 Create fake host repository 8 Create fake host repository
9 9
10 $ mkdir -p $TEST_HOST 10 $ mkdir -p $TEST_HOST
11 $ cd $TEST_HOST 11 $ cd $TEST_HOST
12 $ git init 12 $ git init
13 Initialized empty Git repository in * (glob) 13 Initialized empty Git repository in * (glob)
14 $ echo 1 > ver 14 $ echo 1 > ver
15 $ git add ver 15 $ git add ver
16 $ git commit -m "1" 16 $ git commit -m "1"
17 [master (root-commit) ???????] 1 (glob) 17 [master (root-commit) ???????] 1 (glob)
18 1 file changed, 1 insertion(+) 18 1 file changed, 1 insertion(+)
19 create mode 100644 ver 19 create mode 100644 ver
20 20
21 Create a normal repository cloning from host 21 Create a normal repository cloning from host
22 22
23 $ git clone $TEST_HOST $TEST_NORMAL 23 $ git clone $TEST_HOST $TEST_NORMAL
24 Cloning into * (glob) 24 Cloning into * (glob)
25 done. 25 done.
26 Checking connectivity... done
26 27
27 Create a submodule repository cloning from host 28 Create a submodule repository cloning from host
28 29
29 $ mkdir -p $TEST_SUBMODULE 30 $ mkdir -p $TEST_SUBMODULE
30 $ cd $TEST_SUBMODULE 31 $ cd $TEST_SUBMODULE
31 $ git init 32 $ git init
32 Initialized empty Git repository in * (glob) 33 Initialized empty Git repository in * (glob)
33 $ git submodule add $TEST_HOST antigen 34 $ git submodule add $TEST_HOST antigen
34 Cloning into 'antigen'... 35 Cloning into 'antigen'...
35 done. 36 done.
37 Checking connectivity... done
36 $ git commit -m "1" 38 $ git commit -m "1"
37 [master (root-commit) ???????] 1 (glob) 39 [master (root-commit) ???????] 1 (glob)
38 2 files changed, 4 insertions(+) 40 2 files changed, 4 insertions(+)
39 create mode 100644 .gitmodules 41 create mode 100644 .gitmodules
40 create mode 160000 antigen 42 create mode 160000 antigen
41 43
42 Update host repository 44 Update host repository
43 45
44 $ cd $TEST_HOST 46 $ cd $TEST_HOST
45 $ echo 2 > ver 47 $ echo 2 > ver
46 $ git add ver 48 $ git add ver
47 $ git commit -m "2" 49 $ git commit -m "2"
48 [master ???????] 2 (glob) 50 [master ???????] 2 (glob)
49 1 file changed, 1 insertion(+), 1 deletion(-) 51 1 file changed, 1 insertion(+), 1 deletion(-)
50 52
51 Use selfupdate from normal repository 53 Use selfupdate from normal repository
52 54
53 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate 55 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate
54 From * (glob) 56 From * (glob)
55 ???????..??????? master -> origin/master (glob) 57 ???????..??????? master -> origin/master (glob)
56 Updating ???????..??????? (glob) 58 Updating ???????..??????? (glob)
57 Fast-forward 59 Fast-forward
58 ver | 2 +- 60 ver | 2 +-
59 1 file changed, 1 insertion(+), 1 deletion(-) 61 1 file changed, 1 insertion(+), 1 deletion(-)
60 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate 62 $ _ANTIGEN_INSTALL_DIR=$TEST_NORMAL antigen-selfupdate
61 Already up-to-date. 63 Already up-to-date.
62 64
63 Use selfupdate from submodule repository 65 Use selfupdate from submodule repository
64 66
65 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate 67 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate
66 From * (glob) 68 From * (glob)
67 ???????..??????? master -> origin/master (glob) 69 ???????..??????? master -> origin/master (glob)
68 Updating ???????..??????? (glob) 70 Updating ???????..??????? (glob)
69 Fast-forward 71 Fast-forward
70 ver | 2 +- 72 ver | 2 +-
71 1 file changed, 1 insertion(+), 1 deletion(-) 73 1 file changed, 1 insertion(+), 1 deletion(-)
72 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate 74 $ _ANTIGEN_INSTALL_DIR=$TEST_SUBMODULE/antigen antigen-selfupdate
73 Already up-to-date. 75 Already up-to-date.
74 76
1 Load a couple of plugins. 1 Load a couple of plugins.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR
4 Cloning into '*'... (glob) 4 Cloning into '*'... (glob)
5 done. 5 done.
6 Checking connectivity... done
6 $ antigen-bundle $PLUGIN_DIR2 7 $ antigen-bundle $PLUGIN_DIR2
7 Cloning into '*'... (glob) 8 Cloning into '*'... (glob)
8 done. 9 done.
10 Checking connectivity... done
9 11
10 Create a snapshot file. 12 Create a snapshot file.
11 13
12 $ test -f snapshot-file 14 $ test -f snapshot-file
13 [1] 15 [1]
14 $ antigen-snapshot snapshot-file 16 $ antigen-snapshot snapshot-file
15 $ test -f snapshot-file 17 $ test -f snapshot-file
16 18
17 See the contents of the snapshot file. 19 See the contents of the snapshot file.
18 20
19 $ cat snapshot-file 21 $ cat snapshot-file
20 version='1'; created_on='*'; checksum='*'; (glob) 22 version='1'; created_on='*'; checksum='*'; (glob)
21 .{40} .*/test-plugin (re) 23 .{40} .*/test-plugin (re)
22 .{40} .*/test-plugin2 (re) 24 .{40} .*/test-plugin2 (re)
23 25
24 Reset the antigen's bundle record and run cleanup. 26 Reset the antigen's bundle record and run cleanup.
25 27
26 $ unset _ANTIGEN_BUNDLE_RECORD 28 $ unset _ANTIGEN_BUNDLE_RECORD
27 $ antigen-cleanup --force | grep '^Deleting' | wc -l 29 $ antigen-cleanup --force | grep '^Deleting' | wc -l
28 2 30 2
29 31
30 Restore from the snapshot. 32 Restore from the snapshot.
31 33
32 $ ls dot-antigen/repos | wc -l 34 $ ls dot-antigen/repos | wc -l
33 0 35 0
34 $ antigen-restore snapshot-file 36 $ antigen-restore snapshot-file
35 Restoring from snapshot-file... done. 37 Restoring from snapshot-file... done.
36 Please open a new shell to get the restored changes. 38 Please open a new shell to get the restored changes.
37 $ ls dot-antigen/repos | wc -l 39 $ ls dot-antigen/repos | wc -l
38 2 40 2
39 41
1 Load the theme explicitly. 1 Load the theme explicitly.
2 2
3 $ antigen-theme $PLUGIN_DIR silly 3 $ antigen-theme $PLUGIN_DIR silly
4 Cloning into '*'... (glob) 4 Cloning into '*'... (glob)
5 done. 5 done.
6 Checking connectivity... done
6 $ echo "$PS1" 7 $ echo "$PS1"
7 prompt> 8 prompt>
8 9
1 Load plugin. 1 Load plugin.
2 2
3 $ antigen-bundle $PLUGIN_DIR 3 $ antigen-bundle $PLUGIN_DIR
4 Cloning into '.+?'\.\.\. (re) 4 Cloning into '.+?'\.\.\. (re)
5 done. 5 done.
6 Checking connectivity... done
6 $ hehe 7 $ hehe
7 hehe 8 hehe
8 9
9 Update the plugin. 10 Update the plugin.
10 11
11 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF 12 $ cat > $PLUGIN_DIR/aliases.zsh <<EOF
12 > alias hehe='echo hehe, updated' 13 > alias hehe='echo hehe, updated'
13 > EOF 14 > EOF
14 $ pg commit -am 'Updated message' 15 $ pg commit -am 'Updated message'
15 \[master [a-f0-9]{7}\] Updated message (re) 16 \[master [a-f0-9]{7}\] Updated message (re)
16 1 file changed, 1 insertion(+), 1 deletion(-) 17 1 file changed, 1 insertion(+), 1 deletion(-)
17 18
18 Run antigen's update. 19 Run antigen's update.
19 20
20 $ antigen-update 21 $ antigen-update
21 **** Pulling */test-plugin (glob) 22 **** Pulling */test-plugin (glob)
22 From */test-plugin (glob) 23 From */test-plugin (glob)
23 ???????..??????? master -> origin/master (glob) 24 ???????..??????? master -> origin/master (glob)
24 Updating ???????..??????? (glob) 25 Updating ???????..??????? (glob)
25 Fast-forward 26 Fast-forward
26 aliases.zsh |\s+2 \+- (re) 27 aliases.zsh |\s+2 \+- (re)
27 1 file changed, 1 insertion(+), 1 deletion(-) 28 1 file changed, 1 insertion(+), 1 deletion(-)
28 Updated from ??????? to ???????. (glob) 29 Updated from ??????? to ???????. (glob)
29 ??????? Updated message (glob) 30 ??????? Updated message (glob)
30 aliases.zsh |\s+2 \+- (re) 31 aliases.zsh |\s+2 \+- (re)
31 1 file changed, 1 insertion(+), 1 deletion(-) 32 1 file changed, 1 insertion(+), 1 deletion(-)
32 33
33 34
34 Confirm there is still only one repository. 35 Confirm there is still only one repository.
35 36
36 $ ls $ADOTDIR/repos | wc -l 37 $ ls $ADOTDIR/repos | wc -l
37 1 38 1
38 39
39 The new alias should not activate. 40 The new alias should not activate.
40 41
41 $ hehe 42 $ hehe
42 hehe 43 hehe
43 44
44 Run update again, with no changes in the origin repo. 45 Run update again, with no changes in the origin repo.
45 46
46 $ antigen-update 47 $ antigen-update
47 **** Pulling */test-plugin (glob) 48 **** Pulling */test-plugin (glob)
48 Already up-to-date. 49 Already up-to-date.
49 50
50 51