the step backwards for our two forward
authorChris Koeritz <fred@gruntose.com>
Fri, 18 May 2018 22:35:59 +0000 (18:35 -0400)
committerChris Koeritz <fred@gruntose.com>
Fri, 18 May 2018 22:35:59 +0000 (18:35 -0400)
had to not use puff_out_list; that is the wrong method.  but got the behavior i wanted by plugging in the correct methods.

scripts/rev_control/push_repo_downstream.sh
scripts/rev_control/rpuffer.sh
scripts/rev_control/version_control.sh

index 991a3251d99fa8d9a9226643f80390ea0d43b6b0..d65c2f45bfab643ba13f86bd489eb58cbfb7a8b3 100644 (file)
@@ -48,9 +48,8 @@ test_or_die "changing to directory: $dir"
 tempfile=$(generate_rev_ctrl_filelist)
 test_or_die "generating revision control file list"
 
-#perform_revctrl_action_on_file "$tempfile" do_careful_git_update
-perform_revctrl_action_on_file "$tempfile" puff_out_list
-test_or_die "doing a careful git update on: $tempfile"
+perform_revctrl_action_on_file "$tempfile" do_careful_git_update
+test_or_die "doing a careful update on: $tempfile"
 
 # seems to be needed to cause a merge to be resolved.
 git pull downstream master
index c31fcb64ed350c3b569ba4585c1e28ce5635a890..5032bc12f1cbbcaf0e8aff4fd6fd91d047dc5541 100644 (file)
@@ -24,7 +24,6 @@ tempfile=$(generate_rev_ctrl_filelist)
 test_or_die "generating revision control file list"
 popd &>/dev/null
 
-#perform_revctrl_action_on_file "$tempfile" do_careful_git_update
-perform_revctrl_action_on_file "$tempfile" puff_out_list
+perform_revctrl_action_on_file "$tempfile" do_careful_git_update
 test_or_die "puffing out repository at: $tempfile"
 
index b96bcb3431fe55aa4f7bb478bc85e3300a08cd6b..0c7ac401b6305cc595e4e7eedea2728c0f55b9d3 100644 (file)
@@ -243,7 +243,10 @@ function checkin_list()
   restore_terminal_title
 }
 
-# does a careful git update on all the folders in the specified list.
+# does a careful update on all the folders in the specified list;
+# it looks in the REPOSITORY_LIST for those names and updates them.
+# this is just like checkout_list, but it's for the puffing up action
+# we need to do on git.
 function puff_out_list()
 {
   # make the list of directories unique.
@@ -379,9 +382,15 @@ function do_careful_git_update()
   test_or_die "changing to directory: $directory"
 
   if [ ! -d ".git" ]; then
-    # we ignore if they're jumping into a non-useful folder, but also tell them.
-    echo "Directory is not a git repository: $directory"
-    return 0
+
+#    # we ignore if they're jumping into a non-useful folder, but also tell them.
+#    echo "Directory is not a git repository: $directory"
+#    return 0
+
+    # new and better approach; just boil down to a getem action.
+    popd &>/dev/null
+    do_update $directory
+    return $?
   fi
 
   local this_branch="$(my_branch_name)"